@php use App\Models\Setting; use App\Support\AddressFormatter; $company = [ 'name' => Setting::get('company_name', config('app.name')), 'address' => Setting::get('company_address', ''), 'owner' => Setting::get('company_owner', ''), 'pincode' => Setting::get('company_pincode', ''), 'phone' => Setting::get('company_phone', ''), 'email' => Setting::get('company_email', ''), 'gstin' => Setting::get('company_gstin', ''), 'state' => Setting::get('company_state', ''), 'state_code' => Setting::get('company_state_code', ''), ]; $companyAddress = collect([ $company['owner'] ? "({$company['owner']})" : null, AddressFormatter::flow($company['address']), ])->filter()->implode(', '); if ($company['pincode']) { $companyAddress = trim($companyAddress.' - '.$company['pincode'], ' -'); } $customer = $deliveryChallan->saleOrder->customer; $customerAddress = AddressFormatter::flow($customer->address); @endphp
Not a Tax Invoice — for transport of goods only
|
Ship To (Customer) {{ $customer->name }} @if ($customer->contact_person){{ $customer->contact_person }} @endif @if ($customerAddress){{ $customerAddress }} @endif {{ collect([$customer->city, $customer->state, $customer->pincode])->filter()->implode(', ') }} @if ($customer->gstin)GSTIN/UIN: {{ $customer->gstin }}@endif |
Challan Details Challan No.: {{ $deliveryChallan->challan_number }} Dated: {{ $deliveryChallan->delivered_date->format('d-M-Y') }} Against Sale Order: {{ $deliveryChallan->saleOrder->order_number }} Dispatched from: {{ $deliveryChallan->warehouse->name }} |
| Sl No. |
Description of Goods | HSN | Quantity |
|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->product?->name ?? "Deleted product (#{$item->product_id})" }} | {{ $item->product?->hsn_code ?: '—' }} | {{ $item->delivered_quantity }} {{ $item->product?->unit ?: 'PCS' }} |
| Total | {{ $deliveryChallan->items->sum('delivered_quantity') }} PCS | ||
Notes: {{ $deliveryChallan->notes }}
@endif|
for {{ $company['name'] }} Authorised Signatory |
This is a Computer Generated Delivery Challan