@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 {{ $deliveryChallan->challan_number }} — {{ $company['name'] }} @unless ($forPdf ?? false)
← Back to sale order Download PDF
@endunless

DELIVERY CHALLAN

Not a Tax Invoice — for transport of goods only

{{ $company['name'] }}
@if ($companyAddress)
{{ $companyAddress }}
@endif
@if ($company['gstin'])GSTIN/UIN: {{ $company['gstin'] }}@endif @if ($company['state'])  |  State: {{ $company['state'] }}@if ($company['state_code']), Code: {{ $company['state_code'] }}@endif @endif @if ($company['phone'])  |  Mob: {{ $company['phone'] }}@endif @if ($company['email'])  |  {{ $company['email'] }}@endif
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 }}
@foreach ($deliveryChallan->items as $item) @endforeach
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
@if ($deliveryChallan->notes)

Notes: {{ $deliveryChallan->notes }}

@endif
for {{ $company['name'] }}


Authorised Signatory

This is a Computer Generated Delivery Challan