@extends('layouts.user') @section('title', 'Operational Reports') @section('content')
{{ $company->address_1 }}{{ $company->address_2 ? ', ' . $company->address_2 : '' }}
| Mission / Site | Scheduled Start | Scheduled End | Actual Start | Actual End | Total Scans | Status | Detailed History | @elseDate | Duty # | Employee | Site | Sched. Start | Sched. End | @if($reportType === 'checkin' || $reportType === 'combined')Act. Start | @endif @if($reportType === 'checkout' || $reportType === 'combined')Act. End | @endif @if($reportType === 'checkout' || $reportType === 'combined')Total Hours | @endifStatus | Actions | @endif
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{ $row->duty_number }}
{{ $row->site_name }}
|
{{ \Carbon\Carbon::parse($row->from_datetime)->format('M d, H:i') }} | {{ \Carbon\Carbon::parse($row->to_datetime)->format('M d, H:i') }} | {{ $row->actual_start_at ? \Carbon\Carbon::parse($row->actual_start_at)->format('H:i') : '--' }} | {{ $row->actual_end_at ? \Carbon\Carbon::parse($row->actual_end_at)->format('H:i') : '--' }} | {{ $row->total_scans }} Scans | @php $statusConfig = [ 'completed' => ['bg' => 'bg-emerald-100', 'text' => 'text-emerald-700', 'label' => 'Completed'], 'active' => ['bg' => 'bg-blue-100', 'text' => 'text-blue-700', 'label' => 'Active'], 'upcoming' => ['bg' => 'bg-amber-100', 'text' => 'text-amber-700', 'label' => 'Upcoming'], 'missed' => ['bg' => 'bg-red-100', 'text' => 'text-red-700', 'label' => 'Missed'], ]; $config = $statusConfig[$row->status] ?? ['bg' => 'bg-gray-100', 'text' => 'text-gray-700', 'label' => ucfirst($row->status)]; @endphp {{ $config['label'] }} | @else | {{ \Carbon\Carbon::parse($row->schedule_date)->format('M d, Y') }} | #{{ $row->duty_number }} | {{ $row->employee_name }} | {{ $row->site_name }} | {{ \Carbon\Carbon::parse($row->from_datetime)->format('H:i') }} | {{ \Carbon\Carbon::parse($row->to_datetime)->format('H:i') }} | @if($reportType === 'checkin' || $reportType === 'combined')@if($row->actual_start_at) {{ \Carbon\Carbon::parse($row->actual_start_at)->format('H:i') }} @if(\Carbon\Carbon::parse($row->from_datetime)->format('Y-m-d') !== \Carbon\Carbon::parse($row->actual_start_at)->format('Y-m-d')) ({{ \Carbon\Carbon::parse($row->actual_start_at)->format('d/m') }}) @endif @else -- @endif | @endif @if($reportType === 'checkout' || $reportType === 'combined')@if($row->actual_end_at) {{ \Carbon\Carbon::parse($row->actual_end_at)->format('H:i') }} @if(\Carbon\Carbon::parse($row->to_datetime)->format('Y-m-d') !== \Carbon\Carbon::parse($row->actual_end_at)->format('Y-m-d')) ({{ \Carbon\Carbon::parse($row->actual_end_at)->format('d/m') }}) @endif @else -- @endif | @endif @if($reportType === 'checkout' || $reportType === 'combined')@if($row->actual_start_at && $row->actual_end_at) @php $start = \Carbon\Carbon::parse($row->actual_start_at); $end = \Carbon\Carbon::parse($row->actual_end_at); $diffInMinutes = $start->diffInMinutes($end); $decimalHours = $diffInMinutes / 60; @endphp {{ number_format($decimalHours, 2) }} hrs @else -- @endif | @endif@php $statusConfig = [ 'completed' => ['bg' => 'bg-emerald-100', 'text' => 'text-emerald-700', 'label' => 'Completed'], 'active' => ['bg' => 'bg-blue-100', 'text' => 'text-blue-700', 'label' => 'Active'], 'upcoming' => ['bg' => 'bg-amber-100', 'text' => 'text-amber-700', 'label' => 'Upcoming'], 'missed' => ['bg' => 'bg-red-100', 'text' => 'text-red-700', 'label' => 'Missed'], ]; $config = $statusConfig[$row->status] ?? ['bg' => 'bg-gray-100', 'text' => 'text-gray-700', 'label' => ucfirst($row->status)]; @endphp {{ $config['label'] }} | @endif |
|
No records found for this report type |
||||||||||||||||||