@extends('layouts.user') @section('title', 'Operational Reports') @section('content')
@if($company)

{{ $company->name }}

{{ $company->address_1 }}{{ $company->address_2 ? ', ' . $company->address_2 : '' }}

@endif
  • All Sites
  • No sites found
  • All Employees
  • No employees found
@php $queryParams = request()->except('type'); @endphp Check-in Report Checkout Report Check-IN/OUT Report Scan History Banned Employees Credentials
@if($reportType === 'scans_history') @else @if($reportType === 'checkin' || $reportType === 'combined') @endif @if($reportType === 'checkout' || $reportType === 'combined') @endif @if($reportType === 'checkout' || $reportType === 'combined') @endif @endif @forelse($reports as $row) @if($reportType === 'scans_history') @else @if($reportType === 'checkin' || $reportType === 'combined') @endif @if($reportType === 'checkout' || $reportType === 'combined') @endif @if($reportType === 'checkout' || $reportType === 'combined') @endif @endif @empty @endforelse
Mission / Site Scheduled Start Scheduled End Actual Start Actual End Total Scans Status Detailed HistoryDate Duty # Employee Site Sched. Start Sched. End Act. Start Act. EndTotal Hours Status Actions
{{ $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'] }}
@if($row->total_scans > 0)
Report
@csrf
@else -- @endif
{{ \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($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 @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 @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 @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'] }}
{{-- PDF Download --}} {{-- Email Share --}} @if($reportType === 'combined')
@csrf
@endif

No records found for this report type

@if($reports->hasPages())
{{ $reports->links() }}
@endif
@endsection