@foreach ($orders as $order) @php $separate_print = $company->separate_print_for_branch; if ($separate_print == 1) { $branch = $order->branch; } else { $branch = null; } @endphp
@if ($pageLogo != null) Logo @endif @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
@php $isIgst = $order->items->sum('igst') > 0 ? true : false; $hasCess = $order->items->sum('cess') > 0 ? true : false; @endphp @if (!$isIgst) @else @endif @if ($hasCess) @endif @foreach ($order->items as $key => $item) @if (!$isIgst) @else @endif @if ($hasCess) @endif @endforeach @if (!$isIgst) @else @endif @if ($hasCess) @endif
SN Item HSN GST
%
MRP MRP
Dis(%)
Qty Unit Price Gross
Value
Taxable
Value
CGST SGSTIGSTCESSTotal
{{ $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 }}{{ $item->cgst }} {{ $item->sgst }}{{ $item->igst }}{{ $item->cess }}{{ $item->total }}
Total {{ number_format($order->items->sum('taxable_value'), 2) }} {{ number_format($order->items->sum('cgst'), 2) }} {{ number_format($order->items->sum('sgst'), 2) }} {{ number_format($order->items->sum('igst'), 2) }} {{ number_format($order->items->sum('cess'), 2) }} {{ 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
@if ($orders->last() != $order)
@endif @endforeach