@extends('layouts.app') @section('title', 'Patrol Logs') @section('no-page-header') @section('content')
View patrol activity and monitoring logs
Total Logs
{{ $logs->count() }}
Completed
{{ $logs->where('status', 'completed')->count() }}
Incomplete
{{ $logs->where('status', 'incomplete')->count() }}
Today
{{ $logs->getCollection()->filter(function($log) { return \Carbon\Carbon::parse($log->log_time)->isToday(); })->count() }}
| Log ID | Employee | Schedule | Checkpoint | Check In | Check Out | Duration | Status | Actions | |
|---|---|---|---|---|---|---|---|---|---|
| {{ $log->id }} | {{ $log->employee->full_name }} | {{ $log->schedule?->schedule_name ?? 'N/A' }} | {{ $log->checkpoint?->checkpoint_name ?? 'N/A' }} | {{ $log->check_in_time?->format('h:i A') }} | {{ $log->check_out_time?->format('h:i A') }} | @if($log->check_out_time && $log->check_in_time) {{ $log->check_in_time->diffInMinutes($log->check_out_time) }} min @else - @endif | {{ $log->status }} |
|
|
| No logs found. | |||||||||