@foreach ($accountingVouchers as $accountingVoucher)
@if ($pageLogo != null) @endif @php $separate_print = $company->separate_print_for_branch; if ( $separate_print == 1 && $accountingVoucher->branch != null && $accountingVoucher->branch->name != 'Main Branch' ) { $branch = $accountingVoucher->branch; } else { $branch = null; } @endphp
Logo

{{ $branch != null ? $branch->name : $company->name }}

{{ $branch != null ? $branch->address : $company->address }}

GSTIN:{{ $branch != null ? $branch->gst_no : $company->gst }}

State Name:{{ $company->state }},Code:{{ $company->state_code }}

Contact No:{{ $branch != null ? $branch->mobile : $company->phone }}

Email:{{ $company->email }}

@if ($accountingVoucher->einvoice) IRN:{{ $accountingVoucher->einvoice->irn }} @endif
Electronic Information:-
Ack No : {{ $accountingVoucher->einvoice ? $accountingVoucher->einvoice->ack_no : '' }} E-Way Bill No : {{ $accountingVoucher->ewayBill ? $accountingVoucher->ewayBill->ewayBillNo : '' }}
Ack Date : {{ $accountingVoucher->einvoice ? date('d-m-Y', strToTime($accountingVoucher->einvoice->ack_dt)) : '' }} E-Way Bill Date : {{ $accountingVoucher->ewayBill ? $accountingVoucher->ewayBill->ewayBillDate : '' }}
Vehicle No: {{ $accountingVoucher->ewayBill ? $accountingVoucher->ewayBill->vehicleNo : '' }} E-Way Bill Valid Till : {{ $accountingVoucher->ewayBill ? $accountingVoucher->ewayBill->validUpto : '' }}
@if ($accountingVoucher->einvoice) @php $qrCodeData = $accountingVoucher->einvoice->signed_QRCode; $qrImage = QrCode::format('svg')->size(150)->generate($qrCodeData); $qrImageBase64 = base64_encode($qrImage); @endphp QR Code @endif
Details Of Receiver(Billed To) Details Of Consignee(Shipped To) Invoice No : {{ $accountingVoucher->voucher_number }}

{{ $accountingVoucher->customer != null ? $accountingVoucher->customer->name : $accountingVoucher->debitLedger->name }}

{{ $accountingVoucher->customer != null ? $accountingVoucher->customer->address : $accountingVoucher->debitLedger->address }}

GSTIN:{{ $accountingVoucher->customer != null ? '' : $accountingVoucher->debitLedger->gst }}

State:{{ $accountingVoucher->customer != null ? '' : $accountingVoucher->debitLedger->state }}     Code:{{ $accountingVoucher->customer != null ? '' : $accountingVoucher->debitLedger->state_code }}

{{ $accountingVoucher->customer != null ? $accountingVoucher->customer->name : $accountingVoucher->debitLedger->name }}

{{ $accountingVoucher->ship_to_address }}

Phone : {{ $accountingVoucher->customer ? $accountingVoucher->customer->mobile : $accountingVoucher->debitLedger->mobile_no }}

Invoice Date : {{ $accountingVoucher->voucher_date }}

Remarks : {{ $accountingVoucher->remarks }}
Transport Mode : {{ $accountingVoucher->mode_of_transportation }}   Vehicle No : {{ $accountingVoucher->vehicle_no }}
Date of Supply : {{ $accountingVoucher->date_of_supply }}
@if ($accountingVoucher->items()->sum('cgst') > 0) @else @endif @if ($accountingVoucher->items()->sum('cgst') > 0) @endif @foreach ($accountingVoucher->items as $item) @if ($accountingVoucher->items()->sum('cgst') > 0) @else @endif @endforeach @if ($accountingVoucher->items()->sum('cgst') > 0) @else @endif @if ($accountingVoucher->items()->sum('cgst') > 0) @else @endif @if ($accountingVoucher->items()->sum('cgst') > 0) @else @endif @if ($accountingVoucher->items()->sum('cgst') > 0) @else @endif @if ($accountingVoucher->items()->sum('cgst') > 0) @else @endif @if ($accountingVoucher->items()->sum('cgst') > 0) @else @endif @if ($accountingVoucher->items()->sum('cgst') > 0) @else @endif @if ($accountingVoucher->items()->sum('cgst') > 0) @else @endif
items()->sum('cgst') > 0) rowspan="2" @endif>Sl
No
items()->sum('cgst') > 0) rowspan="2" @endif style="text-align: left;width:30% !important">Description Of Goods items()->sum('cgst') > 0) rowspan="2" @endif>HSN/SAC items()->sum('cgst') > 0) rowspan="2" @endif>Quantity items()->sum('cgst') > 0) rowspan="2" @endif>Rate items()->sum('cgst') > 0) rowspan="2" @endif>Per items()->sum('cgst') > 0) rowspan="2" @endif>Gross
Value
items()->sum('cgst') > 0) rowspan="2" @endif>Dis(%) items()->sum('cgst') > 0) rowspan="2" @endif>Taxable
Value
CGST SGST/UTGSTGST(%) IGSTitems()->sum('cgst') > 0) rowspan="2" @endif>Total Amount
Rate Amount Rate Amount
{{ $loop->iteration }} {{ $item->stockItem->name }}@if($item->remarks != null)({{ $item->remarks }}) @endif {{ $item->stockItem->hsn_code }} {{ $item->quantity }} {{ number_format($item->price, 3) }} {{ $item->unit->symbol }} {{ number_format($item->gross_value, 3) }} {{ number_format($item->disc_percentage, 2) }} {{ number_format($item->taxable_value, 3) }}{{ $item->gst_per / 2 }}% {{ $item->cgst }} {{ $item->gst_per / 2 }}% {{ number_format($item->sgst, 3) }}{{ $item->gst_per }}% {{ number_format($item->igst, 3) }}{{ number_format($item->total, 3) }}

{{ $accountingVoucher->items()->sum('taxable_value') }}
CGST {{ number_format($accountingVoucher->items()->sum('cgst'), 3) }}
SGST {{ number_format($accountingVoucher->items()->sum('sgst'), 3) }}
IGST {{ number_format($accountingVoucher->items()->sum('igst'), 3) }}
ROUND OFF {{ number_format($accountingVoucher->round_off, 3) }}
Discount {{ number_format($accountingVoucher->discount, 3) }}
FREIGHT ETC {{ number_format($accountingVoucher->freight, 3) }}
TOTAL {{ $accountingVoucher->items()->sum('quantity') }} {{ number_format($accountingVoucher->items()->sum('gross_value'), 3) }} ₹{{ number_format($accountingVoucher->amount, 3) }} {{ number_format($accountingVoucher->items()->sum('cgst'), 3) }} {{ number_format($accountingVoucher->items()->sum('sgst'), 3) }} {{ number_format($accountingVoucher->items()->sum('igst'), 3) }}
items()->sum('cgst') > 0) colspan="14" @else colspan="12" @endif style="padding-left:10px;"> @php $words = new \NumberFormatter('en', \NumberFormatter::SPELLOUT); $words = $words->format($accountingVoucher->amount); @endphp Amount Chargeable (in words) INR {{ $words }}
@if ($company->bankLedger != null) Bank Name : {{ $company->bankLedger->name }}
Branch : {{ $company->bankLedger->branch }}
Acc No : {{ $company->bankLedger->account_number }}
IFSC : {{ $company->bankLedger->ifsc_code }} @endif
items()->sum('cgst') > 0) colspan="11" @else colspan="9" @endif align="right" style="padding-right:10px !important;border-left:none;"> For {{ $company->name }}

Authorized Signatory
@if ($accountingVouchers->last() != $accountingVoucher)
@endif
@endforeach