Download PDF
PAID
@if(\App\Models\Setting::get('company_logo')) Company Logo @endif

{{ \App\Models\Setting::get('company_name', 'BAKHT RAWAN TRADING CO.') }}

@if(\App\Models\Setting::get('company_address'))
{{ \App\Models\Setting::get('company_address') }}
@endif @if(\App\Models\Setting::get('company_phone'))
Phone: {{ \App\Models\Setting::get('company_phone') }}
@endif
Email: {{ \App\Models\Setting::get('company_email', 'fazeer0301@gmail.com') }}
Tracking: {{ \App\Models\Setting::get('company_website', 'www.bakhttrd.com') }}
{!! QrCode::size(80)->generate(url('/print.php?id=' . $booking->id)) !!}
Scan to Track
@if(\App\Models\Setting::get('office_rawalpindi_status', '1'))
{{ \App\Models\Setting::get('office_rawalpindi_title', 'Rawalpindi Office') }}
{!! nl2br(e(\App\Models\Setting::get('office_rawalpindi_address', 'بالمقابل القمر فلور مل ریلوے ورکشاپ روڈ'))) !!}
{!! nl2br(e(\App\Models\Setting::get('office_rawalpindi_phone', "051-5530940, 051-5558105\n0301-5559072, 0334-5559072"))) !!}
@endif @if(\App\Models\Setting::get('office_peshawar_status', '1'))
{{ \App\Models\Setting::get('office_peshawar_title', 'Peshawar Office') }}
{!! nl2br(e(\App\Models\Setting::get('office_peshawar_address', 'بالمقابل اٹک پٹرول پمپ نزد نیشنل کانٹا رنگ روڈ'))) !!}
{!! nl2br(e(\App\Models\Setting::get('office_peshawar_phone', '0312-3366411'))) !!}
Guangzhou Warehouse
@endif @if(\App\Models\Setting::get('office_lahore_status', '1'))
{{ \App\Models\Setting::get('office_lahore_title', 'Lahore Office') }}
{!! nl2br(e(\App\Models\Setting::get('office_lahore_address', 'باجوہ ہاؤس، پی ایس او پمپ لنک، حضرت علی روڈ'))) !!}
{!! nl2br(e(\App\Models\Setting::get('office_lahore_phone', "042-37339922, 042-37339921\n0331-4444630, 0301-1851177"))) !!}
@endif
Bill To
{{ $booking->customer->name }}
{{ $booking->customer->address }}, {{ $booking->customer->city }}
{{ $booking->customer->phone }}
Invoice Details
Invoice No: #{{ $booking->id }}
Date: {{ \Carbon\Carbon::parse($booking->booking_date)->format('d M, Y') }}
Container: {{ $booking->cntr_no }}
Destination: {{ $booking->destination_city ?? '-' }}
@php $totalAmount = 0; $unitTotals = ['KG' => 0, 'PCS' => 0, 'CTN' => 0, 'CBM' => 0]; @endphp @foreach($booking->items as $item) @php $totalAmount += $item->amount; $unit = strtoupper($item->unit ?? 'PCS'); if (isset($unitTotals[$unit])) { $unitTotals[$unit] += $item->quantity; } // Build additional info string $additionalInfo = []; if (!empty($item->cartons) && $item->cartons > 0) { $additionalInfo[] = $item->cartons . ' Cartons'; } if (!empty($item->baggage) && $item->baggage > 0) { $additionalInfo[] = $item->baggage . ' Baggage'; } if (!empty($item->custom_label) && !empty($item->custom_value)) { $additionalInfo[] = $item->custom_value . ' ' . $item->custom_label; } $additionalInfoText = !empty($additionalInfo) ? implode(', ', $additionalInfo) : '-'; @endphp @endforeach
Description Quantity Unit Additional Info Rate Amount
{{ $item->description }} {{ number_format($item->quantity, 2) }} {{ strtoupper($item->unit ?? 'PCS') }} {{ $additionalInfoText }} {{ number_format($item->rate, 0) }} {{ number_format($item->amount, 2) }}
TOTALS @foreach($unitTotals as $unit => $total) @if($total > 0) {{ number_format($total, 2) }} {{ $unit }} @if(!$loop->last && array_sum(array_slice($unitTotals, $loop->index + 1)) > 0), @endif @endif @endforeach {{ number_format($totalAmount, 0) }}
Subtotal {{ number_format($totalAmount, 0) }}
Discount -{{ number_format($booking->discount ?? 0, 0) }}
Total Payable {{ number_format($booking->total_amount, 0) }}
Advance Paid {{ number_format($booking->advance_payment, 0) }}
Balance Due {{ number_format($booking->due_payment, 0) }}