@extends('layouts.admin') @section('title', 'Operational Reports') @section('content')
{{ $company->address_1 }}{{ $company->address_2 ? ', ' . $company->address_2 : '' }}
| Scanned At | Guard Name | Duty # | Site | Checkpoint | Tour Route | Evidence | Message | ||
|---|---|---|---|---|---|---|---|---|---|
| Date | Duty # | Employee | Site | Sched. Start | Sched. End | @if($reportType === 'checkin' || $reportType === 'combined')Act. Start | @endif @if($reportType === 'checkout' || $reportType === 'combined')Act. End | @endifStatus | Actions |
|
{{ \Carbon\Carbon::parse($row->scanned_at)->format('M d, Y') }}
{{ \Carbon\Carbon::parse($row->scanned_at)->format('H:i:s') }}
|
{{ $row->employee_name }} | #{{ $row->duty_number }} | {{ $row->site_name }} |
{{ $row->checkpoint_name }}
{{ $row->checkpoint_id_code }}
|
{{ $row->tour_route_name ?? 'N/A' }} | @if($row->evidence_image) View @else -- @endif | {{ $row->employee_message ?? '--' }} | ||
| {{ \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@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'] }} |
@if($reportType === 'combined')
@endif
|
|
No records found for this report type |
|||||||||