@extends('layouts.user') @section('title', 'Consolidated Report') @section('content')

Consolidated Operational Report

{{-- Export --}}
  • All Employees
@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 Number Start Duty Time End Duty Time Pay Type Actual Hrs Sin Rate Other Rate Gas Allowance Tickets Count Total Amount
{{ $row->site_route }} {{ $row->role }} {{ $row->duty_number }} {{ $row->start_time ? $row->start_time->format('Y-m-d h:i A') : '-' }} {{ $row->end_time ? $row->end_time->format('Y-m-d h:i A') : '-' }} {{ $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
@endsection