{{-- 1 - No. --}}
{{ $number_employee }} |
{{-- 2 - NOMBRE --}}
{{ $user->username }} |
{{-- 3 - CARGO --}}
{{ $employee->job }} |
{{-- 4- FECHA --}}
{{ Carbon\Carbon::createFromFormat('Y-m-d', $date)->format('d-m-Y') }} |
{{-- 5- DIA --}}
{{ $punch->day }} |
{{-- 6- ENTRADA --}}
{{ isset($punch->in['check']) ? $punch->in['check'] : '--' }} |
{{-- 7- SALIDA --}}
{{ isset($punch->out['check']) ? $punch->out['check'] : '--' }} |
{{-- 8- HORARIO --}}
{{ $schedule[$punch->day]['start'] }} A {{ $schedule[$punch->day]['end'] }}
|
{{-- 9- RETARDO --}}
@if ($punch->hasRetardation)
{{ isset($punch->in['diff']) && $punch->in['diff'] > 10 ? $punch->in['diff_human'] : '' }}
|
@else
|
@endif
{{-- 10- FALTA --}}
@if ($punch->hasLack)
@if (isset($punch->in['diff']) && $punch->in['diff'] > 20)
Entrada: {{ $punch->in['diff_human'] }}.
@php($hasNote = true)
@endif
@if (isset($punch->out['diff']) && $punch->out['diff'] < 0)
{{ $hasNote ? ' / ' : '' }}
Salida: {{ $punch->out['diff_human'] }}.
@endif
@if (!isset($punch->in['check']) && !isset($punch->out['check']))
{{-- Sin registros --}}
@else
@if (!isset($punch->in['check']) || !isset($punch->out['check']))
{{-- {{ $punch->report[0] }}. --}}
{{ $punch->report[count($punch->report) - 1] }}.
@endif
@endif
|
@else
|
{{-- | --}}
@endif
{{-- 10- SIN REGISTRO --}}
@if (!$employee->justifyAll && !isset($punch->in['check']) && !isset($punch->out['check']))
Sin registro
|
@else
|
@endif
@endif
@endif
@endforeach
@endforeach