@if ($printSettings->seperate_lines) @endif @foreach ($accountingVouchers as $accountingVoucher)

INVOICE

{{ $company->name }}

{{ $company->address }}

PH:{{ $company->phone }}

@if (Auth::user()->company_profile->fssai_number != null) FSSAI NO:{{ Auth::user()->company_profile->fssai_number }}       @endif GST:{{ $company->gst }}       State:{{ $company->state }} @if ($printSettings->upi_id != null || $printSettings->gpay != null)

@if ($printSettings->upi_id != null) UPI ID:{{ $printSettings->upi_id }}       @endif @if ($printSettings->gpay != null) GPAY NO:{{ $printSettings->gpay }} @endif

@endif
Invoice No {{ $accountingVoucher->voucher_number }}
Invoice Date {{ \Carbon\Carbon::parse($accountingVoucher->voucher_date)->format('d M Y') }}
_____
______
@if ($printSettings->qr_image != null)

Customer Name : {{ $accountingVoucher->debitLedger->name }}
Address : {{ $accountingVoucher->debitLedger->address }}
Mobile No :{{ $accountingVoucher->debitLedger->mobile_no }}

GSTIN:{{ $accountingVoucher->debitLedger->gst }}
@else

Customer Name : {{ $accountingVoucher->debitLedger->name }}
Address : {{ $accountingVoucher->debitLedger->address }}
Mobile No :{{ $accountingVoucher->debitLedger->mobile_no }}

GSTIN:{{ $accountingVoucher->debitLedger->gst }}
@endif
@if ($printSettings->hsn_code) @endif @if ($printSettings->product_code) @endif @if ($printSettings->mrp) @endif @if ($printSettings->discount_percentage) @endif @if ($printSettings->gst) @endif @if ($printSettings->itemwise_gst) @endif @if ($printSettings->itemwise_igst) @endif @if ($printSettings->cess_amount) @endif @if ($printSettings->itemwise_gst) @endif @foreach ($accountingVoucher->items as $key => $item) @php $key = $key + 1; @endphp @if ($printSettings->hsn_code) @endif @if ($printSettings->product_code) @endif @if ($printSettings->mrp) @endif @if ($printSettings->discount_percentage) @endif @if ($printSettings->gst) @endif @if ($printSettings->itemwise_gst) @endif @if ($printSettings->itemwise_igst) @endif @if ($printSettings->cess_amount) @endif @if ($key % 26 == 0) @if ($printSettings->hsn_code) @endif @if ($printSettings->product_code) @endif @if ($printSettings->mrp) @endif @if ($printSettings->discount_percentage) @endif @if ($printSettings->gst) @endif @if ($printSettings->itemwise_gst) @endif @if ($printSettings->itemwise_igst) @endif @if ($printSettings->cess_amount) @endif
itemwise_gst) rowspan="2" @endif>SNitemwise_gst) rowspan="2" @endif>HSNitemwise_gst) rowspan="2" @endif>Codeitemwise_gst) rowspan="2" @endif>Item itemwise_gst) rowspan="2" @endif>Rate itemwise_gst) rowspan="2" @endif>Qty itemwise_gst) rowspan="2" @endif>Unititemwise_gst) rowspan="2" @endif>MRPitemwise_gst) rowspan="2" @endif>Grossitemwise_gst) rowspan="2" @endif>Dis%itemwise_gst) rowspan="2" @endif>Gst%CGST SGSTitemwise_gst) rowspan="2" @endif>Igstitemwise_gst) rowspan="2" @endif>Cessitemwise_gst) rowspan="2" @endif>Total
% Amt % Amt
{{ $key }} {{ $item->stockItem->hsn_code }} {{ $item->stockItem->item_code }} {{ $item->stockItem->name }} @if ($item->variant_id != null) ({{ $item->variant->name }}) @endif {{ number_format($item->price, 2) }} {{ $item->quantity }} {{ $item->unit->symbol }} {{ number_format($item->stockItem->getMrp($accountingVoucher->voucher_date), 2) }} {{ number_format($item->gross_value, 2) }} {{ number_format($item->disc_percentage, 2) }} {{ $item->gst_per }} {{ $item->gst_per / 2 }} {{ number_format($item->cgst, 2) }} {{ $item->gst_per / 2 }} {{ number_format($item->sgst, 2) }} {{ number_format($item->igst, 2) }} {{ $item->cess }} {{ number_format($item->total, 2) }}
{{ $item->gst_per }}
@php $words = new \NumberFormatter('en', \NumberFormatter::SPELLOUT); $words = $words->format($accountingVoucher->amount); @endphp Invoice Value(In words)
( {{ $words }} Only)
Cess
Total
{{ number_format($accountingVoucher->items->sum('cess'), 2) }}
{{ number_format($accountingVoucher->amount, 2) }}
Certified that the particulars given above are true and correct {{ $company->name }}
Bank Details:- Bank Name : {{ $company->bankLedger->name }}
Branch : {{ $company->bankLedger->branch }}
A/C No : {{ $company->bankLedger->account_number }}
IFSC : {{ $company->bankLedger->ifsc_code }}
Authorised Signatory

INVOICE

{{ $company->name }}

{{ $company->address }}

PH:{{ $company->phone }}

GST:{{ $company->gst }}       State:{{ $company->state }} @if ($printSettings->upi_id != null || $printSettings->gpay != null)

@if ($printSettings->upi_id != null) UPI ID:{{ $printSettings->upi_id }}       @endif @if ($printSettings->gpay != null) GPAY NO:{{ $printSettings->gpay }} @endif

@endif
Invoice No {{ $accountingVoucher->voucher_number }}
Invoice Date {{ \Carbon\Carbon::parse($accountingVoucher->voucher_date)->format('d M Y') }}
_____
______
@if ($printSettings->qr_image != null)

Customer Name : {{ $accountingVoucher->debitLedger->name }}
Mobile No :{{ $accountingVoucher->debitLedger->mobile_no }}
Address : {{ $accountingVoucher->debitLedger->address }}

GSTIN:{{ $accountingVoucher->debitLedger->gst }}
@else

Customer Name : {{ $accountingVoucher->debitLedger->name }}
Mobile No :{{ $accountingVoucher->debitLedger->mobile_no }}
Address : {{ $accountingVoucher->debitLedger->address }}

GSTIN:{{ $accountingVoucher->debitLedger->gst }}
@endif
itemwise_gst) rowspan="2" @endif>SN @if ($printSettings->hsn_code) itemwise_gst) rowspan="2" @endif>HSN @endif @if ($printSettings->product_code) itemwise_gst) rowspan="2" @endif>Code @endif itemwise_gst) rowspan="2" @endif>Item itemwise_gst) rowspan="2" @endif>Rate itemwise_gst) rowspan="2" @endif>Qty itemwise_gst) rowspan="2" @endif>Unit @if ($printSettings->mrp) itemwise_gst) rowspan="2" @endif>MRP @endif itemwise_gst) rowspan="2" @endif>Gross @if ($printSettings->discount_percentage) itemwise_gst) rowspan="2" @endif>Dis% @endif @if ($printSettings->gst) itemwise_gst) rowspan="2" @endif>Gst% @endif @if ($printSettings->itemwise_gst) CGST SGST @endif @if ($printSettings->itemwise_igst) itemwise_gst) rowspan="2" @endif>Igst @endif @if ($printSettings->cess_amount) itemwise_gst) rowspan="2" @endif>Cess @endif itemwise_gst) rowspan="2" @endif>Total @if ($printSettings->itemwise_gst) % Amt % Amt @endif @endif @endforeach @php if ($accountingVoucher->items->count() > 26) { $modulous = $accountingVoucher->items->count() % 26; $modulous = 25 - $modulous; } else { $modulous = 24 - $accountingVoucher->items->count(); } @endphp @if ($modulous > 0) @for ($i = 0; $i + 1 < $modulous; ++$i) @if ($printSettings->hsn_code) @endif @if ($printSettings->product_code) @endif @if ($printSettings->mrp) @endif @if ($printSettings->discount_percentage) @endif @if ($printSettings->gst) @endif @if ($printSettings->itemwise_gst) @endif @if ($printSettings->itemwise_igst) @endif @if ($printSettings->cess_amount) @endif @endfor @endif @if ($printSettings->hsn_code) @endif @if ($printSettings->product_code) @endif {{ $accountingVoucher->items->sum('quantity') }} @if ($printSettings->mrp) @endif {{ number_format($accountingVoucher->items->sum('gross_value'), 2) }} @if ($printSettings->discount_percentage) @endif @if ($printSettings->gst) @endif @if ($printSettings->itemwise_gst) {{ number_format($accountingVoucher->items->sum('cgst'), 2) }} {{ number_format($accountingVoucher->items->sum('sgst'), 2) }} @endif @if ($printSettings->itemwise_igst) {{ number_format($accountingVoucher->items->sum('igst'), 2) }} @endif @if ($printSettings->cess_amount) {{ number_format($accountingVoucher->items->sum('cess'), 2) }} @endif @if ($printSettings->item_total) {{ number_format($accountingVoucher->items->sum('total'), 2) }} @endif @if ($accountingVoucher->items->count() < 26) @endif
@if ($accountingVouchers->last() != $accountingVoucher)
@endif @endforeach