@if($company)

{{ $company->name }}

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

@endif

Consolidated Operational Report

Period: {{ \Carbon\Carbon::parse($startDate)->format('M d, Y') }} - {{ \Carbon\Carbon::parse($endDate)->format('M d, Y') }}

Generated By: {{ auth()->user()->name }}

Date Generated: {{ now()->format('M d, Y H:i') }}

@forelse($groupedConsolidated as $empHeader => $items)
{{ $empHeader }}
@php $totalHrs = 0; $totalGas = 0; $totalAllowance = 0; $totalTickets = 0; $totalAmount = 0; @endphp @foreach($items as $row) @php $totalHrs += $row->actual_hrs; $totalGas += $row->gas; $totalAllowance += $row->allowance; $totalTickets += $row->tickets_count; $totalAmount += $row->total_amount; @endphp @endforeach
Site/Route Role Duty # Start End Type Hrs SIN Rate Other Rate Gas Allow Tkts Total
{{ $row->site_route }} {{ $row->role }} {{ $row->duty_number }} {{ $row->start_time ? $row->start_time->format('m-d H:i') : '-' }} {{ $row->end_time ? $row->end_time->format('m-d H:i') : '-' }} {{ $row->pay_type }} {{ number_format($row->actual_hrs, 2) }} {{ number_format($row->sin_rate, 2) }} {{ number_format($row->other_rate, 2) }} {{ $row->gas ? number_format($row->gas, 0) : '0' }} {{ $row->allowance ? number_format($row->allowance, 0) : '0' }} {{ $row->tickets_count }} {{ number_format($row->total_amount, 2) }}
Grand Total {{ number_format($totalHrs, 2) }} - - {{ number_format($totalGas, 0) }} {{ number_format($totalAllowance, 0) }} {{ $totalTickets }} {{ number_format($totalAmount, 2) }}
@empty

No records found for the selected period.

@endforelse