New Sale (ctrl+q)
@php $invoice_items = array_chunk( $invoice->sale_details, 2000 ); $count = count($invoice->sale_details); $c=0; @endphp
@foreach($invoice_items as $orders)
GST Rule 2017
GSTIN: {{ $pagedata[0]['gst'] }}
Invoice B2C
FSSAI: {{ $pagedata[0]['fssai_no'] }}
{!! nl2br($pagedata[0]['print_address']) !!}
{{ $pagedata[0]['print_sub_head'] }}
{{ $pagedata[0]['city'] }}
PH:{{ $pagedata[0]['phone'] }}
Bill to Party: {{ $invoice->customer->name }}
Invoice No: {{ $invoice->invoice_no }}
Date: {{ date("d-m-Y", strtotime($invoice->sale_date)) }}
@php $mrptotal = 0; @endphp @foreach($orders as $orderItems) @php $c++; $mrptotal = $mrptotal + ($orderItems->mrp * $orderItems->quantity); @endphp @endforeach
# Particulars Qty Rate GST% Total
{{ $c }} {{ $orderItems->product->name }} {{ $orderItems->quantity }} {{ $orderItems->unit_price }} {{ $orderItems->cgst }} {{ round($orderItems->item_total) }}
Discount: ₨ {{ round($invoice->cash_discount) }}
Total: ₨ {{ round($invoice->grand_total) }}
Taxable Amt:{{ round(collect($orders)->sum('gross_amount'), 2) }}
CGST:{{ round(collect($orders)->sum('cgst_amount'), 2) }}
SGST:{{ round(collect($orders)->sum('sgst_amount'), 2) }}
*** {{ $pagedata[0]['print_footer_text'] }} *** {{ $pagedata[0]['print_footer_subtext'] }}
@endforeach