@php $pdfLocale = app()->getLocale(); $isRtl = $pdfLocale === 'ar'; @endphp
|
@php
$logoSrc = null;
if (!empty($setting['logo'])) {
$logoPath = public_path('images/'.$setting['logo']);
if (file_exists($logoPath) && is_readable($logoPath)) {
$logoData = @file_get_contents($logoPath);
if ($logoData !== false) {
$logoB64 = base64_encode($logoData);
$logoExt = strtolower(pathinfo($logoPath, PATHINFO_EXTENSION));
$logoMime = $logoExt === 'svg' ? 'image/svg+xml' : (in_array($logoExt, ['png','jpeg','jpg','gif','webp'], true) ? 'image/'.$logoExt : 'image/png');
if ($logoExt === 'jpg') { $logoMime = 'image/jpeg'; }
$logoSrc = 'data:'.$logoMime.';base64,'.$logoB64;
}
}
}
@endphp
@if($logoSrc)
|
REPAIR QUOTE
{{$job['Ref'] ?? '#'.$job['id']}}
@if(!empty($job['quote_valid_until']))
Valid until: {{ \Carbon\Carbon::parse($job['quote_valid_until'])->format('Y-m-d') }}
@endif
|
|
Reported Issue
{{$job['reported_issue']}}
|
|
Our Diagnosis
{{$job['diagnosis']}}
|
| Type | Description | Qty | Unit Price | Total |
|---|---|---|---|---|
| {{ $row['type'] ?? 'part' }} | {{ $row['description'] }} | {{ $row['quantity'] }} | {{ $cur }}{{ number_format((float)$row['unit_price'], 2) }} | {{ $cur }}{{ number_format((float)$row['total'], 2) }} |
| Quote amount: {{ $cur }}{{ number_format((float)($job['quote_amount'] ?? 0), 2) }} | ||||
| Diagnostic Fee | {{ $cur }}{{ number_format((float)$job['diagnostic_fee'], 2) }} | |||
| QUOTE TOTAL | {{ $cur }}{{ number_format((float)$job['total_amount'], 2) }} | |||
|
CUSTOMER APPROVAL
By signing below I authorize the work and parts described above. I understand that the diagnostic fee is non-refundable if I decline the repair, but will be credited toward the total if I approve.
|
{{$setting['invoice_footer']}}