@foreach ($orders as $order)
|
@if ($pageLogo != null)
|
@php
$separate_print = $company->separate_print_for_branch;
if ($separate_print == 1) {
$branch = $order->branch;
} else {
$branch = null;
}
@endphp
@if ($branch == null || $branch->name == 'Main Branch')
{{ $company->name }}
Address : {{ $company->address }}
@else
{{ $branch->name }}
Address : {{ $branch->address }}
@endif
|
@if ($branch == null || $branch->name == 'Main Branch')
Phone : {{ $company['phone'] }}
@else
Phone : {{ $branch->mobile }}
@endif
GST No : {{ $company['gst'] }}
|
|
Buyer Details
Party Name : {{ $order->debitLedger->name }}
Mobile No :{{ $order->debitLedger->mobile_no }}
,GST No : {{ $order->debitLedger->gst }}
Address : {{ $order->debitLedger->address }}
|
Order |
Order Details
Date : {{ \Carbon\Carbon::parse($order->order_date)->format('d M Y') }}
Order Code : {{ $order->order_code }}
@if ($company->show_remarks && $order->remarks != null)
Remarks : {{ $order->remarks }}
@endif
@if ($order->shipping_address != null)
Ship To : {{ $order->shipping_address }}
@endif
|
| SN | Item | HSN | GST % |
MRP | MRP Dis(%) |
Qty | Unit | Price | Gross Value |
Taxable Value |
@if (!$isIgst)
CGST | SGST | @elseIGST | @endif @if ($hasCess)CESS | @endifTotal |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $item->stockItem->name }} | {{ $item->stockItem->hsn_code }} | {{ $item->gst_per }} | {{ $item->mrp != null ? $item->mrp : $item->stockItem->getMrp($order->order_date) }} | {{ $item->discount_on_mrp }} | {{ $item->quantity }} | {{ $item->unit->symbol }} | {{ $item->price }} | {{ $item->gross_value }} | {{ $item->taxable_value }} | @if (!$isIgst){{ $item->cgst }} | {{ $item->sgst }} | @else{{ $item->igst }} | @endif @if ($hasCess){{ $item->cess }} | @endif{{ $item->total }} |
| Total | {{ number_format($order->items->sum('taxable_value'), 2) }} | @if (!$isIgst){{ number_format($order->items->sum('cgst'), 2) }} | {{ number_format($order->items->sum('sgst'), 2) }} | @else{{ number_format($order->items->sum('igst'), 2) }} | @endif @if ($hasCess){{ number_format($order->items->sum('cess'), 2) }} | @endif{{ number_format($order->items->sum('total'), 2) }} |
|
Total Taxable Value :
Rs.{{ number_format($order->items->sum('taxable_value'), 2) }}
@if (!$isIgst)
Total CGST : Rs.{{ number_format($order->items->sum('cgst'), 2) }}
Total SGST : Rs.{{ number_format($order->items->sum('sgst'), 2) }}
@else
Total IGST : Rs.{{ number_format($order->items->sum('igst'), 2) }}
@endif
@if ($hasCess)
Total CESS : Rs.{{ number_format($order->items->sum('cess'), 2) }}
@endif
Discount : Rs.{{ $order->discount ?? '0.00' }}
Freight/Etc : Rs.{{ $order->freight }}
Round Off : Rs.{{ $order->round_off }}
Grand Total : Rs.{{ $order->amount }}
|
Authorized Signature
|