Man Power Duty Panel

{{ $technician->technician_code }} ยท {{ $technician->name }} @if($technician->specialization) ยท {{ $technician->specialization }} @endif

@if($activeDuty) DUTY IN PROGRESS @else OFF DUTY @endif
Account Status
{{ $technician->status }}
Completed Duties
{{ $totalCompleted }}
Total Hours Logged
{{ $totalHoursFormatted }}
@if($activeDuty)
{{ $activeDuty->duty_code }}

Started at {{ $activeDuty->formatted_start_time }}

@if($activeDuty->start_location_name)

Location: {{ $activeDuty->start_location_name }}

@endif
End Duty

Live Duty Photos & Proof of Work

Capture field work photos with GPS coordinates during the active duty.

{{ $activeDuty->photos->count() }} Photos Captured
@error('dutyPhoto') {{ $message }} @enderror
@if($activeDuty->photos->isNotEmpty())
@foreach($activeDuty->photos as $photo)
{{ $photo->caption }}
{{ $photo->caption ?: 'Duty Photo' }}
{{ $photo->taken_at ? $photo->taken_at->format('h:i A') : $photo->created_at->format('h:i A') }}
@if($photo->latitude && $photo->longitude)
๐Ÿ“ {{ round($photo->latitude, 4) }}, {{ round($photo->longitude, 4) }}
@endif
@if($photo->stage === 'in_progress') @endif
@endforeach
@endif
@else

Ready to start your shift?

Starting a duty requires a live verification photo and records your location.

Start Duty
@endif

Duty History

@forelse($recentDuties as $duty) @empty @endforelse
Duty Date Start End Duration Status Report
{{ $duty->duty_code }} {{ $duty->duty_date?->format('d M Y') }} {{ $duty->start_time?->format('h:i A') ?? 'โ€”' }} {{ $duty->end_time?->format('h:i A') ?? 'โ€”' }} {{ $duty->formatted_duration }} @if($duty->status === 'in_progress') In Progress @else Completed @endif @if($duty->status === 'completed') Certificate @else โ€” @endif
No duties logged yet.
@if($recentDuties->hasPages())
{{ $recentDuties->links() }}
@endif
@if($showStartModal)

Live Photo Verification Required

Snap a live picture to unlock & start duty

@error('startPhoto') {{ $message }} @enderror
@endif @if($showEndModal)

Live Photo Verification Required

Snap a live picture to unlock & end duty

@error('endPhoto') {{ $message }} @enderror
@endif