@foreach ($orders as $order) @php $chunks = $order->items->chunk(5); $pages = count($chunks); @endphp @foreach ($chunks as $chunkIndex => $chunk)
| Page: {{ $chunkIndex + 1 }} of {{ $pages }} | Order Details | |
{{ $company->name }}{{ $company->address }} PH: {{ $company->phone }}, Email: {{ $company->email }} GST: {{ $company->gst }} State: {{ $company->state }} |
||
|
CUSTOMER: {{ $order->debitLedger->name }} ADDRESS: {{ $order->debitLedger->address }} PHONE: {{ $order->debitLedger->mobile_no }} |
GSTIN No: {{ $order->debitLedger->gst }} State: {{ $order->debitLedger->state }} PO No: {{ $order->debitLedger->pin_code }} |
Order No: {{ $order->order_code }} Invoice Date: {{ date('d-m-Y', strtotime($order->order_date)) }} Sales Man: {{ $order->insertUser ? $order->insertUser->name : '' }} |
| s no | HSN | Product | MRP | Qty | UOM | Rate | Disc | Taxable | Gst % |
@if ($order->items->sum('igst') > 0)
IGST | @elseCGST | SGST | @endifCESS | Total |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $item->stockItem->hsn_code }} | {{ $item->stockItem->name }} | {{ $item->stockItem->getMrp($order->order_date) }} | {{ $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 }} | @if ($order->items->sum('igst') > 0){{ number_format($item->igst, 2) }} | @else{{ number_format($item->cgst, 2) }} | {{ number_format($item->sgst, 2) }} | @endif{{ number_format($item->cess, 2) }} | {{ number_format($item->total, 2) }} |
| @if ($order->items->sum('igst') > 0) | @else | @endif | ||||||||||||
| {{ $order->items->sum('quantity') }} | {{ number_format($order->items->sum('disc_amount'), 2) }} | {{ number_format($order->items->sum('taxable_value'), 2) }} | @if ($order->items->sum('igst') > 0) | {{ number_format($order->items->sum('igst'), 2) }} | @else{{ number_format($order->items->sum('cgst'), 2) }} | {{ number_format($order->items->sum('sgst'), 2) }} | @endif{{ number_format($order->items->sum('cess'), 2) }} | {{ number_format($order->items->sum('total'), 2) }} | ||||||
| items->sum('igst') > 0) colspan="13" @else colspan="14" @endif style="border-top:1px solid black !important"> | ||||||||||||||
| {{ $words }} | Order Discount : {{ $order->discount }} |
| Freight : {{ $order->freight }} | |
| Round Off : {{ $order->round_off }} | |
| Order Total : {{ number_format($order->amount) }} |
| Received In Good Condition | Party Signature | FOR : {{ $company->name }} |