{{-- one fuel receipt page: its details, then the photo. $mode: merge = a PDF receipt follows on the next page(s), note = it could not be added --}} @php $dt = fn ($v) => \App\Http\Controllers\Api\Reports\IftaReturnController::date($v); @endphp
Receipt {{ $r['no'] }} of {{ $total }} · {{ $dt($r['date']) }} · {{ $r['trip_no'] }} · truck {{ $r['truck_no'] }}
{{ $r['seller'] }}{{ ($r['city'] || $r['state']) ? ' — '.trim(($r['city'] ?? '').', '.($r['state'] ?? ''), ', ') : '' }} @if($r['fuel_type']) · {{ ucfirst($r['fuel_type']) }} @endif @if($r['invoice']) · Invoice {{ $r['invoice'] }} @endif @if($r['gallons']) · {{ number_format((float) $r['gallons'], 1) }} gal @endif @if($r['cost']) · ${{ number_format((float) $r['cost'], 2) }} @endif
File: {{ $r['file'] }}
@if(!empty($r['image']))
@elseif($r['is_pdf'] && $mode === 'merge' && empty($r['missing']))
This receipt is a PDF file — it follows on the next page.
@elseif($r['is_pdf'])
This receipt is a PDF file ({{ $r['original'] ?: $r['file'] }}) and could not be added here.
Use the ZIP export to get it, or open it on trip {{ $r['trip_no'] }}.
@else
This receipt file could not be shown ({{ $r['original'] ?: $r['file'] }}).
Use the ZIP export to get the original file.
@endif