@php $show = json_decode($invoice_settings->show_column); @endphp {{ $general_setting->site_title }} | Challan Invoice @if(!config('database.connections.saleprosaas_landlord')) @else @endif @php $primary_color = isset($show->active_primary_color) && $show->active_primary_color == 1 && !empty($invoice_settings->primary_color) ? $invoice_settings->primary_color : '#014b94'; @endphp @php $url = route('challan.index'); @endphp
{{ __('db.Back') }}

{{-- ── Header: Company Info + Logo + Challan Info ── --}}
@if(isset($show->show_warehouse_info) && $show->show_warehouse_info == 1)

{{ $general_setting->company_name ?? '' }}

@if($general_setting->vat_registration_number && isset($show->show_vat_registration_number) && $show->show_vat_registration_number == 1)
{{ __('db.VAT Number') }}:  {{ $general_setting->vat_registration_number }}
@endif @endif
@if($general_setting->site_logo || $invoice_settings->company_logo) @endif
{{ __('db.reference') }}: DC-{{ $challan->reference_no }}
{{ __('db.date') }}: {{ date($general_setting->date_format, strtotime($challan->created_at->toDateString())) }}
{{ __('db.status') }}: {{ $challan->status }}
Courier: {{ $challan->courier->name }} [{{ $challan->courier->phone_number }}]
@if($challan->closing_date)
Closing Date: {{ date($general_setting->date_format, strtotime($challan->closing_date)) }}
@endif
{{-- ── Title bar ── --}} @if(isset($show->show_bill_to_info) && $show->show_bill_to_info == 1)

DELIVERY CHALLAN

@endif {{-- ── Packing Slip Table ── --}} @php $packing_slip_list = explode(',', $challan->packing_slip_list); $amount_list = explode(',', $challan->amount_list); $cash_list = $challan->cash_list ? explode(',', $challan->cash_list) : []; $cheque_list = $challan->cheque_list ? explode(',', $challan->cheque_list) : []; $online_list = $challan->online_payment_list ? explode(',', $challan->online_payment_list) : []; $delivery_list = $challan->delivery_charge_list ? explode(',', $challan->delivery_charge_list) : []; $status_list = $challan->status_list ? explode(',', $challan->status_list) : []; $sum = array_sum($amount_list); @endphp @foreach($packing_slip_list as $key => $packing_slip_id) @php $packing_slip = \App\Models\PackingSlip::with('sale.customer')->find(trim($packing_slip_id)); if(!$packing_slip) continue; $sale = $packing_slip->sale; if($sale->shipping_address) { $address = $sale->shipping_address; $city = $sale->shipping_city; $phone = $sale->shipping_phone; } else { $address = $sale->customer->address; $city = $sale->customer->city; $phone = $sale->customer->phone_number; } @endphp @endforeach {{-- Total row --}}
# Order Ref Shipping Info Amount Cash Cheque Online Del. Charge Status
{{ $key + 1 }} {{ $sale->reference_no }} {{ $address }}, {{ $city }}
{{ $phone }}
{{ $amount_list[$key] ?? '' }} {{ $cash_list[$key] ?? '' }} {{ $cheque_list[$key] ?? '' }} {{ $online_list[$key] ?? '' }} {{ $delivery_list[$key] ?? '' }} {{ $status_list[$key] ?? '' }}
Total {{ $sum }}


{{-- ── Signature Row ── --}}

Rider Signature

Authorized Signature
{{-- ── Footer ── --}}
@if(isset($show->show_barcode) && $show->show_barcode == 1)