@extends('layouts.appv2') @section('content')

Attendance

@if ($message = Session::get('success')) @endif @if ($message = Session::get('error')) @endif @if ($errors->any()) @endif
@php $no = 0; $processedEmployees = []; // Track based on 'name-id' @endphp @forelse($checkins_checkouts as $checkin) @php $employeeKey = $checkin->employee_first_name . '-' . $checkin->employee_id; @endphp @if(!in_array($employeeKey, $processedEmployees)) @php $processedEmployees[] = $employeeKey; @endphp @else @endif @empty @endforelse
NO. NAME DEPARTMENT IN/OUT DATE TIME LOCATION Lat, Long
{{ ++$no }} {{ $checkin->employee_first_name }} {{ $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 }}
No check-ins or check-outs recorded.
Not checkin yet
@php $no = 0; @endphp @foreach($notcheckin as $notcheckin) @endforeach
NO. NAME DEPARTMENT
{{ ++$no }} {{ $notcheckin->employee_first_name }} {{ $notcheckin->department_code }}
@endsection