@php
$SePuedeEnviarLaCarpeta = true;
@endphp
@if (Gate::check('postulante.aprobar-carpeta-documentos-postulantes-general') || Gate::check('postulante.aprobar-carpeta-documentos-postulantes-sucursal'))
@foreach ($documentos as $documento)
@if ($documento->tipo_documento == 'Actividad')
@php
$postulanTieneEsteDocumento = false;
@endphp
@foreach ($postulante->carpetaDeDocumentos->detalleDocumentosRequeridos as $detalleDocumento)
@if ($detalleDocumento->id_documento_postulante == $documento->id)
@php
$postulanTieneEsteDocumento = true;
$listadoAsistencias = json_encode($detalleDocumento->asistencias);
@endphp
|
|
{{ $documento->documento }} |
{{ $documento->tipo }} |
{{ $detalleDocumento->institucion }} |
{{ fechaConFormatoDeChile($detalleDocumento->fecha_coordinacion) }} |
{{ fechaConFormatoDeChile($detalleDocumento->fecha_entrega_documento) }} |
{{ fechaConFormatoDeChile($detalleDocumento->fecha_vencimiento) }} |
@switch($detalleDocumento->estado)
@case('No Aplica')
{{ $detalleDocumento->estado }}
@break
@case('Rechazado')
{{ $detalleDocumento->estado }}
@break
@case('Entregado')
{{ $detalleDocumento->estado }}
@break
@case('Pendiente')
@php
$SePuedeEnviarLaCarpeta = false;
@endphp
{{ $detalleDocumento->estado }}
@break
@case('Apto')
{{ $detalleDocumento->estado }}
@break
@case('Apto c/observaciones')
{{ $detalleDocumento->estado }}
@break
@endswitch
|
@endif
@endforeach
@if ($postulanTieneEsteDocumento == false)
@can('postulante.editar-carpeta-documentos-postulantes')
@endcan
|
{{ $documento->documento }} |
{{ $documento->tipo }} |
|
|
|
|
@if ($documento->estado_defecto == 'Pendiente')
@php
$SePuedeEnviarLaCarpeta = false;
@endphp
Pendiente |
@elseif($documento->estado_defecto == 'No Aplica')
No Aplica |
@endif
@endif
@endif
@endforeach
@else
@if (Gate::check('postulante.editar-carpeta-documentos-postulantes'))
@foreach ($documentos as $documento)
@if ($documento->tipo_documento == 'Actividad')
@if ($documento->acceso == 'RRHH' || $documento->acceso == 'RRHH/Solicitante De Solicitud')
@php
$postulanTieneEsteDocumento = false;
@endphp
@foreach ($postulante->carpetaDeDocumentos->detalleDocumentosRequeridos as $detalleDocumento)
@if ($detalleDocumento->id_documento_postulante == $documento->id)
@php
$postulanTieneEsteDocumento = true;
$listadoAsistencias = json_encode($detalleDocumento->asistencias);
@endphp
|
@if (Gate::check('postulante.editar-carpeta-documentos-postulantes'))
@endif
|
{{ $documento->documento }} |
{{ $documento->tipo }} |
{{ $detalleDocumento->institucion }} |
{{ fechaConFormatoDeChile($detalleDocumento->fecha_coordinacion) }} |
{{ fechaConFormatoDeChile($detalleDocumento->fecha_entrega_documento) }} |
{{ fechaConFormatoDeChile($detalleDocumento->fecha_vencimiento) }} |
@switch($detalleDocumento->estado)
@case('No Aplica')
{{ $detalleDocumento->estado }}
@break
@case('Rechazado')
{{ $detalleDocumento->estado }}
@break
@case('Entregado')
{{ $detalleDocumento->estado }}
@break
@case('Pendiente')
@php
$SePuedeEnviarLaCarpeta = false;
@endphp
{{ $detalleDocumento->estado }}
@break
@case('Apto')
{{ $detalleDocumento->estado }}
@break
@case('Apto c/observaciones')
{{ $detalleDocumento->estado }}
@break
@endswitch
|
@endif
@endforeach
@if ($postulanTieneEsteDocumento == false)
|
{{ $documento->documento }} |
{{ $documento->tipo }} |
|
|
|
|
@if ($documento->estado_defecto == 'Pendiente')
@php
$SePuedeEnviarLaCarpeta = false;
@endphp
Pendiente |
@elseif($documento->estado_defecto == 'No Aplica')
No Aplica |
@endif
@endif
@endif
@endif
@endforeach
@else
@foreach ($documentos as $documento)
@if ($documento->tipo_documento == 'Actividad')
@if ($documento->acceso == 'RRHH/Solicitante De Solicitud')
@php
$postulanTieneEsteDocumento = false;
@endphp
@foreach ($postulante->carpetaDeDocumentos->detalleDocumentosRequeridos as $detalleDocumento)
@if ($detalleDocumento->id_documento_postulante == $documento->id)
@php
$postulanTieneEsteDocumento = true;
@endphp
|
|
{{ $documento->documento }} |
{{ $documento->tipo }} |
{{ $detalleDocumento->institucion }} |
{{ fechaConFormatoDeChile($detalleDocumento->fecha_coordinacion) }} |
{{ fechaConFormatoDeChile($detalleDocumento->fecha_entrega_documento) }} |
{{ fechaConFormatoDeChile($detalleDocumento->fecha_vencimiento) }} |
@switch($detalleDocumento->estado)
@case('No Aplica')
{{ $detalleDocumento->estado }}
@break
@case('Rechazado')
{{ $detalleDocumento->estado }}
@break
@case('Entregado')
{{ $detalleDocumento->estado }}
@break
@case('Pendiente')
{{ $detalleDocumento->estado }}
@break
@case('Apto')
{{ $detalleDocumento->estado }}
@break
@case('Apto c/observaciones')
{{ $detalleDocumento->estado }}
@break
@endswitch
|
@endif
@endforeach
@if ($postulanTieneEsteDocumento == false)
|
{{ $documento->documento }} |
{{ $documento->tipo }} |
|
|
|
|
@if ($documento->estado_defecto == 'Pendiente')
Pendiente |
@elseif($documento->estado_defecto == 'No Aplica')
No Aplica |
@endif
@endif
@endif
@endif
@endforeach
@endif
@endif