@php $shopName = $appSettings['shop_name'] ?? 'SAAI DIGITAL'; $shopTagline = $appSettings['shop_tagline'] ?? 'Printing Press & Digital Solutions'; $shopAddress = $appSettings['shop_address'] ?? ''; $shopPhone = $appSettings['shop_phone'] ?? ''; $shopEmail = $appSettings['shop_email'] ?? ''; $shopLogo = !empty($appSettings['shop_logo']) ? asset($appSettings['shop_logo']) : asset('images/saai-final-logo.png'); $booking = $job->booking; $item = $booking?->items?->first(); $payment = $booking?->payments; $advance = (float) ($payment?->advance_amount ?? 0); $grandTotal = (float) ($job->grand_total ?? $booking?->grand_total ?? 0); $balance = max(0, $grandTotal - $advance); $productName = $job->product_name ?? $item?->product_name ?? null; @endphp
{{ $shopTagline }}
@endif @if($shopAddress){{ $shopAddress }}
@endifCustomer Details
{{ $job->customer_name }}
{{ $job->address ?: 'Address not provided' }}
Mobile: {{ $job->mobile ?: '-' }}
Job Title / Description
{{ $job->job_name ?: 'Standard Print Job' }}
| Product / Item | Quantity | Unit Rate | Total Amount |
|---|---|---|---|
| {{ $productName ?? $job->job_name ?? '-' }} | {{ $job->quantity }} | ₹{{ number_format((float)($item?->unit_rate ?? 0), 2) }} | ₹{{ number_format($grandTotal, 2) }} |
Production Sign-Off