@if($type === 'completed') @else @endif @if($type === 'completed') @endif @forelse($schedules as $schedule) @if($type === 'completed') @else @endif @if($type === 'completed') @endif @empty @endforelse
Duty # Route @if(request('sort') === 'route') @else @endif EmployeesSched In Sched Out Actual In Actual OutSched In Sched Out Status @if(request('sort') === 'status') @else @endif Tickets Actions
{{ $schedule->duty_number }} @if($schedule->customer_reference)
Ref: {{ $schedule->customer_reference }}
@endif
{{ substr($schedule->route->name, 0, 1) }}
{{ $schedule->route->name }}
${{ $schedule->route_rate }}
@foreach($schedule->employees as $employee)
@if($employee->profile_picture) @else
{{ substr($employee->first_name, 0, 1) }}{{ substr($employee->last_name, 0, 1) }}
@endif
{{ $employee->first_name }} {{ $employee->last_name }}
{{ $employee->employee_id ?? 'ID: ' . $employee->id }}
@endforeach @if($schedule->employees->count() === 0) Unassigned @endif
{{ $schedule->from_time->format('M d, Y') }}
{{ $schedule->from_time->format('h:i A') }}
{{ $schedule->to_time->format('M d, Y') }}
{{ $schedule->to_time->format('h:i A') }}
@if(!empty($schedule->job_started_at)) @php $start = \Carbon\Carbon::parse($schedule->job_started_at); @endphp
{{ $start->format('M d, Y') }}
{{ $start->format('h:i A') }}
@else -- @endif
@if(!empty($schedule->job_ended_at)) @php $end = \Carbon\Carbon::parse($schedule->job_ended_at); @endphp
{{ $end->format('M d, Y') }}
{{ $end->format('h:i A') }}
@else -- @endif
{{ $schedule->from_time->format('M d, Y') }}
{{ $schedule->from_time->format('h:i A') }}
{{ $schedule->to_time->format('M d, Y') }}
{{ $schedule->to_time->format('h:i A') }}
{{ $schedule->calculated_status }} {{ $schedule->issueTickets->count() }}
@if($schedule->isJobCompleted() || $schedule->isJobInProgress()) View Details Download PDF @if($schedule->issueTickets->count() > 0) Download Images ZIP @endif @elseif($type !== 'active') @if($schedule->job_status !== 'cancelled') Edit Schedule @endif @if($schedule->job_status !== 'cancelled')
@csrf @method('PATCH')
@endif
@csrf @method('DELETE')
@endif
No schedules found for this category.
{{ $schedules->appends(request()->query())->links() }}