@if(isset($company))
{{ $company->name }}
@if($company->address_1 || $company->address_2)
@if($company->address_1){{ $company->address_1 }}@endif @if($company->address_2)
{{ $company->address_2 }}@endif
@endif @else
{{ session('company_name') ?? 'Security Company' }}
@endif
Generated on: {{ now()->format('M d, Y h:i A') }}

Patroller Schedules Report

@foreach($schedules as $schedule) @endforeach
Date Route Employees Job Status Sched Time Actual Time Sites Visited Tickets
{{ $schedule->scheduled_date->format('M d, Y') }} {{ $schedule->route->name ?? 'N/A' }}
{{ $schedule->route->run_no ?? '' }}
@foreach($schedule->employees as $emp)
{{ $emp->user->name ?? ($emp->first_name . ' ' . $emp->last_name) }}
@endforeach @if($schedule->employees->count() == 0) Unassigned @endif
{{ ucfirst(str_replace('_', ' ', $schedule->job_status)) }} In: {{ $schedule->from_time->format('M d, Y h:i A') }}
Out: {{ $schedule->to_time->format('M d, Y h:i A') }}
@if($schedule->job_started_at) @php $startTime = \Carbon\Carbon::parse($schedule->job_started_at); @endphp In: {{ $startTime->format('M d, Y h:i A') }} @endif @if($schedule->job_ended_at) @php $endTime = \Carbon\Carbon::parse($schedule->job_ended_at); @endphp
Out: {{ $endTime->format('M d, Y h:i A') }} @endif @if(!$schedule->job_started_at && !$schedule->job_ended_at) - @endif
{{ $schedule->jobSites->whereNotNull('checked_in_at')->count() }} / {{ $schedule->jobSites->count() }} {{ $schedule->issueTickets->count() }}