@extends('layouts.user') @section('title', 'Check-in History') @section('content')

Check-in History

Reset
@forelse($checkins as $checkin) @empty @endforelse
Time Caller Guard Site / Job Status Notes Evidence
{{ $checkin->created_at->format('M d, Y') }}
{{ $checkin->created_at->format('H:i') }}
{{ $checkin->user?->name ?? 'System' }}
{{ $checkin->employee->first_name }} {{ $checkin->employee->last_name }}
{{ $checkin->employee->phone_number }}
@if($checkin->schedule)
@if($checkin->location_reported) {{ $checkin->location_reported }} @else {{ $checkin->schedule->site->name }} @endif
Static • #{{ $checkin->schedule->duty_number }}
@elseif($checkin->patrollerSchedule)
@if($checkin->location_reported) {{ $checkin->location_reported }} @else {{ $checkin->patrollerSchedule->route->name }} @endif
Patrol • #{{ $checkin->patrollerSchedule->id }}
@else Unknown Job @endif @if($checkin->latitude && $checkin->longitude)
GPS: {{ number_format($checkin->latitude, 6) }}, {{ number_format($checkin->longitude, 6) }}
@php $mapLink = $checkin->maps_link ?: "https://www.google.com/maps?q={$checkin->latitude},{$checkin->longitude}"; @endphp Live Location
@elseif($checkin->maps_link) @endif
@if($checkin->is_verified) Verified @else
@csrf @method('PATCH')
@endif
Method: {{ $checkin->checkin_type }}
{{ $checkin->notes ?: '--' }} @if(!empty($checkin->images))
@foreach($checkin->images as $img) Evidence @endforeach
@else No images @endif
No check-in records found.
@if($checkins->hasPages())
{{ $checkins->appends(request()->query())->links() }}
@endif
@endsection