@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'] }}
@if(Auth::user()->company_profile->fssai_number != null)
FSSAI NO:{{Auth::user()->company_profile->fssai_number }}
@endif
@if($qr_code != null) @endif
Buyer Details
Party Name : {{ $order->debitLedger->name }}
Mobile No :{{ $order->debitLedger->mobile_no }} ,GST No : {{ $order->debitLedger->gst }}
Address : {{ $order->debitLedger->address }}

Order

@if($print_type == 'proforma') PROFORMA INVOICE @elseORDER DETAILS @endif
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
@foreach ($order->items as $key => $item) @endforeach
SN Item Qty Unit Price Gross
Value
Dis
(%)
Taxable
Value
CGST SGST IGST CESS Total
HSN MRP
{{ $key + 1 }} {{ $item->stockItem->name }} {{ $item->quantity }} {{ $item->unit->symbol }} {{ $item->price }} {{ $item->gross_value }} {{ $item->disc_percentage }} {{ $item->taxable_value }} {{ $item->cgst }} {{ $item->sgst }} {{ $item->igst }} {{ $item->cess }} {{ $item->total }}
{{ $item->stockItem->hsn_code }} {{ $item->stockItem->mrp }}
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) }}
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