{{-- {{dd($orders)}} --}} @foreach ($orders as $order) {{-- {{dd($order->distributor_name)}} --}}

{{ $order->distributor_name }}

SALES INVOICE

Address: {{ $order->distributor_address }}
Phone: {{ $order->distributor_phone }}
Bill No: {{ $order->bill_no }}
Date: {{ $order->bill_date }}
Booker: {{ $order->booker_name }}
Party Name: {{ $order->retailer_name }}
Address: {{ !empty($order->retailer_address) ? $order->retailer_address : 'N/A' }}
CNIC/NTN: {{ $order->retailer_cnic }}/{{ $order->retailer_ntn }}
{{-- {{dd($order->detail)}} --}} @foreach ($order->detail as $d) @endforeach {{-- --}}
Code Product Name CTN BOX/PCS T.P. Gr AMT. T.O. T.DISC S. DISC TAX Net AMT.
{{ !empty($d->sku) ? $d->sku : '-' }} {{ !empty($d->item_name) ? $d->item_name : '-' }} {{ !empty($d->primary) ? $d->primary : '-' }} {{ !empty($d->secondary) ? $d->secondary : '-' }} {{ $d->trade_price != '-' ? number_format($d->trade_price, 2) : '-' }} {{ $d->gross_amount != '-' ? number_format($d->gross_amount, 2) : '-' }} {{ $d->trade_offer != '-' ? number_format($d->trade_offer, 2) : '-' }} {{ $d->trade_disc != '-' ? number_format($d->trade_disc, 2) : '-' }} {{ $d->spec_disc != '-' ? number_format($d->spec_disc, 2) : '-' }} {{ $d->tax != '-' ? number_format($d->tax, 2) : '-' }} {{ $d->net_price != '-' ? number_format($d->net_price, 2) : '-' }}
Total 0 0 - 0 0 - 0 0 4,254
    Previous Balance : {{ number_format($order->pre_amt, 2) }}
Salesman Signature Receiver Signature Net AMT: {{ number_format($order->total_net_price, 2) }}

@endforeach