@foreach ($accountingVouchers as $accountingVoucher)

DELIVERY NOTE

{{ $company->name }}

{{ $company->address }}

PH:{{ $company->phone }}

GST:{{ $company->gst }}       State:{{ $company->state }}
Invoice No   {{ $accountingVoucher->voucher_number }}
Invoice Date  {{ \Carbon\Carbon::parse($accountingVoucher->voucher_date)->format('d M Y') }}
@if($accountingVoucher->vehicle_no !=null) Vehicle No @endif {{ $accountingVoucher->vehicle_no }}
Inward/Outward {{ $accountingVoucher->delivery_note_inward ? 'Inward' : 'Outward' }}
Details of Reciever(Billed to) Details of Consignee (Shipped to)
Name: {{ $accountingVoucher->debitLedger->name }} Name: {{ $accountingVoucher->debitLedger->name }}
Address: {{ $accountingVoucher->debitLedger->address }} Address: {{ $accountingVoucher->ship_to_address }}
State: {{ $accountingVoucher->debitLedger->state }}
Mobile: {{ $accountingVoucher->debitLedger->mobile_no }}
GST No: {{ $accountingVoucher->debitLedger->gst }}
@if($accountingVoucher->items->sum('igst') > 0) @else @endif @foreach ($accountingVoucher->items as $key => $item) @if($accountingVoucher->items->sum('igst') > 0) @else @endif @endforeach @if($accountingVoucher->items->count() < 6) @if($accountingVoucher->items->sum('igst') > 0) @else @endif @endif @if($accountingVoucher->items->sum('igst') > 0) @else @endif
sno Items HSN Qty Rate Unit Disc %IgstCgst SgstAmount
{{ $key + 1 }} {{ $item->stockItem->name }} {{$item->stockItem->hsn_code }} {{ $item->quantity }} {{ number_format($item->price, 2) }} {{ $item->unit->symbol }} {{ number_format( $item->disc_percentage,2) }}{{ number_format( $item->igst,2) }}{{ number_format( $item->cgst,2) }} {{ number_format( $item->sgst,2) }}{{ number_format( $item->total,2) }}
{{ $accountingVoucher->items->sum('quantity') }} {{ number_format($accountingVoucher->items->sum('total'),2) }}
@if ($accountingVouchers->last() != $accountingVoucher)
@endif @endforeach