@extends('layouts.user') @section('title', 'Check-in History') @section('content')
| 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) }}
@elseif($checkin->maps_link)
@endif
@php
$mapLink = $checkin->maps_link ?: "https://www.google.com/maps?q={$checkin->latitude},{$checkin->longitude}";
@endphp
Live Location
|
@if($checkin->is_verified)
Verified
@else
@endif
Method: {{ $checkin->checkin_type }}
|
{{ $checkin->notes ?: '--' }} | @if(!empty($checkin->images)) @else No images @endif |
| No check-in records found. | ||||||