@if ($message = Session::get('success'))
{{ $message }}
@endif
@if ($message = Session::get('error'))
{{ $message }}
@endif
@if ($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
| NO. |
NAME |
DEPARTMENT |
IN/OUT |
DATE |
TIME |
LOCATION |
Lat, Long |
@php $no = 0; @endphp
@php $processedNames = []; @endphp
@forelse($checkins_checkouts as $checkin)
@if(!in_array($checkin->employee_first_name, $processedNames))
| {{ ++$no }} |
{{ $checkin->employee_first_name }} |
@php
$processedNames[] = $checkin->employee_first_name;
@endphp
@else
|
|
@endif
{{ $checkin->department_code }} |
{{ $checkin->checkin_type }} |
{{ \Carbon\Carbon::parse($checkin->checkin_datetime)->format('l, d M Y') }} |
{{ \Carbon\Carbon::parse($checkin->checkin_datetime)->format('g:i:s A') }} |
{{ $checkin->checkin_other_reason }} [{{ $checkin->checkin_reason }}] : {{ $checkin->checkin_sublocality }} , {{ $checkin->checkin_locality }} |
{{ $checkin->checkin_lat }}, {{ $checkin->checkin_lng }}
|
@empty
| No check-ins or check-outs recorded. |
@endforelse