@php $pdfLocale = app()->getLocale(); $isRtl = $pdfLocale === 'ar'; @endphp Repair Quote - #{{$job['id']}} @php $cur = $symbol ?? ''; @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) Logo @endif
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
QUOTE FOR
{{$job['client_name']}}
@if(!empty($job['client_phone']) && $job['client_phone'] !== '-')
Phone: {{$job['client_phone']}}
@endif @if(!empty($job['client_email']) && $job['client_email'] !== '-')
Email: {{$job['client_email']}}
@endif @if(!empty($job['client_adr']) && $job['client_adr'] !== '-')
Address: {{$job['client_adr']}}
@endif
FROM
{{$setting['CompanyName']}}
Phone: {{$setting['CompanyPhone']}}
Email: {{$setting['email']}}
Address: {{$setting['CompanyAdress']}}
@if(!empty($job['device_brand']) || !empty($job['device_model']) || !empty($job['device_serial']))
Device
{{ trim(($job['device_brand'] ?? '').' '.($job['device_model'] ?? '')) }} @if(!empty($job['device_color'])) · {{ $job['device_color'] }}@endif @if(!empty($job['device_serial'])) · S/N: {{ $job['device_serial'] }}@endif @if(!empty($job['device_imei'])) · IMEI: {{ $job['device_imei'] }}@endif
@endif @if(!empty($job['reported_issue']) || !empty($job['diagnosis'])) @if(!empty($job['reported_issue'])) @endif @if(!empty($job['diagnosis'])) @endif
Reported Issue
{{$job['reported_issue']}}
Our Diagnosis
{{$job['diagnosis']}}
@endif @if(!empty($job['items']) && count($job['items']) > 0) @foreach($job['items'] as $idx => $row) @endforeach @else @endif @if(!empty($job['diagnostic_fee']) && (float)$job['diagnostic_fee'] > 0) @endif
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) }}
@if(!empty($job['warranty_days']) && (int)$job['warranty_days'] > 0)
Warranty: {{ $job['warranty_days'] }} days from delivery on parts and labor for the work described above.
@endif
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.
Customer signature
Date
@if(!empty($setting['is_invoice_footer']) && !empty($setting['invoice_footer']))

{{$setting['invoice_footer']}}

@endif