@foreach ($accountingVouchers as $accountingVoucher) @for ($i = 0; $i < $PrintSettings->paper_print_count; $i++) @php $chunks = $accountingVoucher->items->chunk(15); $pages = count($chunks); @endphp @foreach ($chunks as $chunkIndex => $chunk)
Copy {{ $i + 1 }} | Page: {{ $chunkIndex + 1 }} of {{ $pages }}
|
@if ($pageLogo != null)
|
{{ $company->name }}
{{ $company->address }},{{ $company->pin_code }}
@if (Auth::user()->company_profile->fssai_number != null)
|
|
|
||||||||||||
| Details of Receiver(Billed to) | Details of Consignee (Shipped to) | ||
| Name: | {{ $accountingVoucher->customer ? $accountingVoucher->customer->name : $accountingVoucher->debitLedger->name }} | @if ($PrintSettings->show_customer_name_in_ship_to) Name @endif | @if ($PrintSettings->show_customer_name_in_ship_to) @php $shipToName = $accountingVoucher->shipping_party_name ?? ($accountingVoucher->customer->name ?? $accountingVoucher->debitLedger->name); @endphp {{ $shipToName }} @endif |
| Address: | {{ $accountingVoucher->customer ? $accountingVoucher->customer->address : $accountingVoucher->debitLedger->address }} | Address: | {{ $accountingVoucher->ship_to_address }} |
| State: | {{ $accountingVoucher->debitLedger->state }} | ||
| Mobile: | {{ $accountingVoucher->customer ? $accountingVoucher->customer->mobile : $accountingVoucher->debitLedger->mobile_no }} | ||
| GST No: | {{ $accountingVoucher->debitLedger->gst }} | ||
| sno | Items | HSN | @if ($PrintSettings->mrp)MRP | @endifQty | Unit | Rate | Disc | Taxable Value |
CGST | SGST | @if ($accountingVoucher->items()->sum('igst') > 0)Igst | @endifAmount | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| % | Amt | % | Amt | |||||||||||
| {{ $key + 1 }} | {{ $item->stockItem->name }} @if ($PrintSettings->show_item_description) ({{ $item->stockItem->description }}) @endif | {{ $item->stockItem->hsn_code }} | @if ($PrintSettings->mrp){{ number_format($item->stockItem->getMrp($accountingVoucher->voucher_date), 2) }} | @endif{{ $item->quantity }} | {{ $item->unit->symbol }} | {{ number_format($item->price, 2) }} | {{ number_format($item->disc_amount, 2) }} | {{ number_format($item->taxable_value, 2) }} | {{ $item->gst_per / 2 }} | {{ number_format($item->cgst, 2) }} | {{ $item->gst_per / 2 }} | {{ number_format($item->sgst, 2) }} | @if ($accountingVoucher->items()->sum('igst') > 0){{ number_format($item->igst, 2) }} | @endif{{ number_format($item->total, 2) }} |
| @if ($PrintSettings->mrp) | @endif | @if ($accountingVoucher->items()->sum('igst') > 0) | @endif | |||||||||||
| @if ($PrintSettings->mrp) | @endif | {{ $accountingVoucher->items->sum('quantity') }} | {{ number_format($accountingVoucher->items->sum('disc_amount')) }} | {{ number_format($accountingVoucher->items->sum('taxable_value')) }} | {{ number_format($accountingVoucher->items->sum('sgst'), 2) }} | {{ number_format($accountingVoucher->items->sum('cgst'), 2) }} | @if ($accountingVoucher->items()->sum('igst') > 0){{ number_format($accountingVoucher->items->sum('igst'), 2) }} | @endif{{ number_format($accountingVoucher->items->sum('total'), 2) }} | mrp) colspan="14" @else colspan="13" @endif style="border-top:1px solid black !important"> | @endif|||||
| Invoice Value(In
Words)
({{ $words }}) |
Freight | {{ number_format($accountingVoucher->freight, 2) }} | |||||||||||||||||||||||
| Round off | {{ number_format($accountingVoucher->round_off, 2) }} | ||||||||||||||||||||||||
| Certified that the Particulars given above are true and correct | Discount | {{ number_format($accountingVoucher->discount, 2) }} | |||||||||||||||||||||||
| Total | {{ number_format($accountingVoucher->amount, 2) }} | ||||||||||||||||||||||||
@if ($PrintSettings->show_item_description == 0)
Closing Balance : {{ number_format($accountingVoucher->closing_balance, 2) }}
@endif
@if ($company->bankLedger != null)
|
{{ $company->name }}
@if ($seal_image != null)
|
||||||||||||||||||||||||
| Authorized Signature | |||||||||||||||||||||||||