@php($businessName = businessConfig('business_name', 'business_information')?->value) @php($businessLogo = businessConfig('header_logo', 'business_information')?->value) @php($businessSignature = businessConfig('business_signature', 'business_information')?->value) @php($businessContactEmail = businessConfig('business_support_email', 'business_information')?->value) @php($businessContactPhone = businessConfig('business_support_phone', 'business_information')?->value) {{-- The PDF reads images from disk; fetching them over HTTP is slow and fails when the app URL is unreachable. --}} @php($forPdf = $forPdf ?? false) @php($asset = fn ($path) => $forPdf ? public_path($path) : asset($path))
{{ $emailed ? 'Receipt emailed to '.$data['customer_info']['customer_email'].'.' : 'The receipt could not be emailed. Print it or try again.' }}
@endif| Invoice |
| {{ 'Trip ID' }} #{{ $data->ref_id }} |
@php($time_format = getSession('time_format'))
{{ translate('date') }}: {{ date(DATE_FORMAT . ' h:i a', strtotime($data['customer_info']['trip_date'] ?? now())) }}
|
|
@if ($data->current_status == 'completed')
{{ $data['customer_info']['distance'] }} {{ translate('kilometers') }} @else{{ $data['customer_info']['distance'] }} {{ translate('kilometers') }} @endif
|