@foreach ($orders as $order) @php $roundOffToTwoDecimals = false; $separate_print = $company->separate_print_for_branch; if ($separate_print == 1) { $branch = $order->branch; } else { $branch = null; } if ($printSettings->round_off_to_two_decimals == 1) { $roundOffToTwoDecimals = true; } @endphp

{{ $company->name }}

Order Details

@if ($qr_code != null) @endif
Seller Details
Seller Name : {{ $company->name }}
Mobile No : {{ $company->phone }} {{ $order->debitLedger->gst }}
Address : {{ $company->address }}
GST No : {{ $company->gst }}
Buyer Details
Party Name : @if ($order->customer != null) {{ $order->customer->name }} @else {{ $order->debitLedger->name }} @endif
Mobile No : @if ($order->customer != null) {{ $order->customer->mobile }} @else {{ $order->debitLedger->mobile_no }} @endif ,GST No : {{ $order->debitLedger->gst }}
Address : {{ $order->debitLedger->address }}
Order Details
Order Date : {{ \Carbon\Carbon::parse($order->order_date)->format('d M Y') }}
Order No : {{ $order->order_code }}
@if ($company->show_remarks && $order->remarks != null)
Remarks : {{ $order->remarks }}
@endif @if ($order->ship_to_address != null)
Ship To : {{ $order->shipping_address }}
@endif
@if ($order->items->sum('igst') > 0) @else @endif @if ($order->items->sum('cess') > 0) @endif @foreach ($order->items as $key => $item) @if ($order->items->sum('igst') > 0) @else @endif @if ($order->items->sum('cess') > 0) @endif @endforeach @if ($order->items->sum('igst') > 0) @else @endif @if ($order->items->sum('cess') > 0) @endif
SN Item HSN Gst% MRP Unit Qty Rate Gross
Value
Dis
(%)
Taxable
Value
IGSTCGST SGSTCESSTotal
{{ $key + 1 }} {{ $item->stockItem->name }} {{ $item->stockItem->hsn_code }} {{ $item->gst_per }} {{ $item->stockItem->getMrp($order->order_date) }} {{ $item->unit->symbol }} {{ $item->quantity }} {{ $roundOffToTwoDecimals ? round($item->price, 2) : $item->price }} {{ $roundOffToTwoDecimals ? round($item->gross_value, 2) : $item->gross_value }} {{ $roundOffToTwoDecimals ? round($item->disc_percentage, 2) : $item->disc_percentage }} {{ $roundOffToTwoDecimals ? round($item->taxable_value, 2) : $item->taxable_value }} {{ $roundOffToTwoDecimals ? round($item->igst, 2) : $item->igst }} {{ $roundOffToTwoDecimals ? round($item->cgst, 2) : $item->cgst }} {{ $roundOffToTwoDecimals ? round($item->sgst, 2) : $item->sgst }} {{ $roundOffToTwoDecimals ? round($item->cess, 2) : $item->cess }} {{ $roundOffToTwoDecimals ? round($item->total, 2) : $item->total }}
Total {{ number_format($order->items->sum('taxable_value'), 2) }} {{ number_format($order->items->sum('igst'), 2) }} {{ number_format($order->items->sum('cgst'), 2) }} {{ number_format($order->items->sum('sgst'), 2) }} {{ number_format($order->items->sum('cess'), 2) }} {{ number_format($order->items->sum('total'), 2) }}
@if ($company->bankLedger != null) @endif
Bank Name : {{ $company->bankLedger->name }}
Account No : {{ $company->bankLedger->account_number }}
@if ($company->bankLedger->account_holder_name != null)
Account Holder Name : {{ $company->bankLedger->account_holder_name }}
@endif
IFSC Code : {{ $company->bankLedger->ifsc_code }}
Branch : {{ $company->bankLedger->branch }}
Total Taxable Value : Rs.{{ number_format($order->items->sum('taxable_value'), 2) }}
Total CGST : Rs.{{ number_format($order->items->sum('cgst'), 2) }}
Total SGST : Rs.{{ number_format($order->items->sum('sgst'), 2) }}
Discount : Rs.{{ $order->discount ?? '0.00' }}
Freight/Etc : Rs.{{ $order->freight }}
Round Off : Rs.{{ $order->round_off }}
Grand Total : Rs.{{ $order->amount }}
Authorized Signature
@if ($orders->last() != $order)
@endif @endforeach