@php
$copies = [
['label' => 'Original', 'class' => 'original-label'],
['label' => 'Duplicate', 'class' => 'duplicate-label'],
];
$sym = $company->currency_symbol ?? '৳';
$totalQty = $invoice->items->sum('qty');
$totalItems = $invoice->items->count();
@endphp
@foreach($copies as $copy)
{{-- COPY LABEL --}}
{{ $copy['label'] }}
{{-- HEADER --}}
@if($company->logo)
 }})
@endif
{{ $company->name }}
@if($company->address){{ $company->address }}
@endif
@if($company->phone)📞 {{ $company->phone }}@if($company->email) · ✉ {{ $company->email }}@endif@endif
@if($company->tax_id)
BIN / TIN: {{ $company->tax_id }}@endif
Delivery
Challan
{{ $challanNumber }}
Ref. Invoice: {{ $invoice->number }}
{{-- META STRIP --}}
{{-- BODY --}}
{{-- PARTIES --}}
Consignor (From)
{{ $company->name }}
@if($company->address)
{{ $company->address }}
@endif
@if($company->phone)
📞 {{ $company->phone }}
@endif
@if($company->tax_id)
BIN / TIN: {{ $company->tax_id }}
@endif
Consignee (To)
{{ $invoice->customer->name }}
@if($invoice->salesOrder && $invoice->salesOrder->delivery_address)
{{ $invoice->salesOrder->delivery_address }}
@elseif($invoice->customer->address)
{{ $invoice->customer->address }}
@endif
@if($invoice->customer->contact_person)
Contact: {{ $invoice->customer->contact_person }}
@endif
@if($invoice->customer->phone)
📞 {{ $invoice->customer->phone }}
@endif
@if($invoice->customer->tax_id)
BIN / TIN: {{ $invoice->customer->tax_id }}
@endif
{{-- ITEMS TABLE (qty only — NO prices on challan) --}}
| # |
Item / Product Description |
HSCode |
Qty |
Unit |
Cartons/ Pkgs |
Batch No. |
Received (✓) |
@foreach($invoice->items as $i => $line)
| {{ $i+1 }} |
{{ $line->item->name }}
@if($line->description){{ $line->description }} @endif
|
{{ $line->item->barcode ?? '—' }} |
{{ number_format($line->qty, 0) }} |
{{ $line->unit }} |
— |
— |
□ |
@endforeach
| Total |
{{ number_format($totalQty, 0) }} |
|
{{-- SUMMARY --}}
Total Items (SKUs)
{{ $totalItems }}
Total Quantity
{{ number_format($totalQty, 0) }}
Invoice Value
{{ $sym }}{{ number_format($invoice->total,2) }}
{{-- CONDITION --}}
Conditions of Delivery: Goods once delivered cannot be returned without prior written consent.
All shortages / damages must be reported at time of delivery. This challan must be signed and returned.
{{-- .body --}}
{{-- SIGNATURES --}}
Dispatched By
{{ $invoice->createdBy->name ?? '' }}
Date: ___________
Checked By
Store / Warehouse
Date: ___________
Driver / Carrier
Name & ID
Date: ___________
Received By (Customer)
Name & Stamp
Date: ___________
{{-- FOOTER --}}
{{-- .copy --}}
@endforeach