@extends('layouts.employee') @section('title', 'Patroller Job') @section('content')
Duty #{{ $schedule->duty_number }}
{{ $schedule->from_time->format('h:i A') }} - {{ $schedule->to_time->format('h:i A') }}
Progress
{{ $uniqueVisitedSites }} / {{ $totalSites }} Sites
Total Issues
{{ $totalTickets }} Tickets
Gas Allowance
${{ $schedule->gas ?? '0.00' }}
Reference
{{ $schedule->customer_reference ?? 'N/A' }}
Comments
"{{ $schedule->comments }}"
{{ $emp->first_name }} {{ $emp->last_name }} @if($isMe) You @endif
{{ $isFinished ? 'Completed at ' . \Carbon\Carbon::parse($emp->pivot->actual_end_at)->format('h:i A') : 'Active on Patrol' }}
{{ $event->site->name }}
@if($event->status === 'checked_out' && $event->checked_in_at && $event->checked_out_at)Duration: {{ $event->checked_in_at->diffInMinutes($event->checked_out_at) }} mins
@endif @if($event->issueTickets->count() > 0){{ $site->address_line_1 }}
Checkout from
{{ Str::limit($activeCheckIn->site->name, 20) }} first
Currently Checked In
Since {{ $currentVisit->checked_in_at->format('h:i A') }}
Activity Log
Check In
{{ $visit->checked_in_at ? $visit->checked_in_at->format('h:i A') : '-' }}
Check Out
{{ $visit->checked_out_at ? $visit->checked_out_at->format('h:i A') : 'Active' }}
{{ $visit->issueTickets->count() }} Issue Ticket(s)
{{ $ticket->description }}
Job starts at {{ $schedule->from_time->format('h:i A') }}
You can start this job {{ $startTime->diffForHumans() }}
Only ends your shift. Job completes when all patrollers finish.
@elseYou have ended your shift.
Job status: In Progress (Waiting for others)