{{-- Report Header & Details --}}

{{ $report->name }}

{{-- Report Details Section --}}
@if(!$isEmailAttachment) @if($report->has_compare_time_frame && $report->compare_time_frame_start_date && $report->compare_time_frame_end_date) @else @endif @elseif($customTimeFrame) @endif @if(ucfirst($report->filter_type ?? 'All') !== 'All') @endif @if($report->locations && $report->locations->count() > 0) @endif @if($report->carriers && $report->carriers->count() > 0) @endif @if($report->drivers && $report->drivers->count() > 0) @endif
Timeframe A: @if($report->time_frame_start_date && $report->time_frame_end_date) {{ \Carbon\Carbon::parse($report->time_frame_start_date)->format('M j, Y') }} - {{ \Carbon\Carbon::parse($report->time_frame_end_date)->format('M j, Y') }} @else N/A @endif
Timeframe B: {{ \Carbon\Carbon::parse($report->compare_time_frame_start_date)->format('M j, Y') }} - {{ \Carbon\Carbon::parse($report->compare_time_frame_end_date)->format('M j, Y') }}
Timeframe: @if($report->time_frame_start_date && $report->time_frame_end_date) {{ \Carbon\Carbon::parse($report->time_frame_start_date)->format('M j, Y') }} - {{ \Carbon\Carbon::parse($report->time_frame_end_date)->format('M j, Y') }} @else N/A @endif
Timeframe: {{ $customTimeFrame }}
Filter Type: {{ ucfirst($report->filter_type ?? 'All') }}
Locations: {{ $report->locations->pluck('site_name')->implode(', ') }}
Carriers: {{ $report->carriers->pluck('name')->implode(', ') }}
Drivers: {{ $report->drivers->pluck('name')->implode(', ') }}

Generated On

{{ $generatedAt->format('F j, Y \a\t g:i A') }}

@if(isset($reportData['type'])) @switch($reportData['type']) @case('calculation') @include('pdfs.partials.calculation-table', ['table' => $reportData['table']]) @break @case('information') @include('pdfs.partials.information-tables', ['tables' => $reportData['tables']]) @break @case('double_time_frames') @include('pdfs.partials.comparison-tables', ['tables' => $reportData['tables']]) @break @endswitch @endif