@foreach ($accountingVouchers as $accountingVoucher) @php $roundOffToTwoDecimals = false; $separate_print = $company->separate_print_for_branch; if ($separate_print == 1) { $branch = $accountingVoucher->branch; } else { $branch = null; } if ($printSettings->round_off_to_two_decimals == 1) { $roundOffToTwoDecimals = true; } @endphp

{{ $company->name }}

INVOICE

@if ($qr_code != null) @endif
Seller Details
Seller Name : {{ $company->name }}
Mobile No : {{ $company->phone }} {{ $accountingVoucher->debitLedger->gst }}
Address : {{ $company->address }}
GST No : {{ $company->gst }}
Buyer Details
Party Name : @if ($accountingVoucher->customer != null) {{ $accountingVoucher->customer->name }} @else {{ $accountingVoucher->debitLedger->name }} @endif
Mobile No : @if ($accountingVoucher->customer != null) {{ $accountingVoucher->customer->mobile }} @else {{ $accountingVoucher->debitLedger->mobile_no }} @endif ,GST No : {{ $accountingVoucher->debitLedger->gst }}
Address : {{ $accountingVoucher->debitLedger->address }}
Voucher Details
Date : {{ \Carbon\Carbon::parse($accountingVoucher->voucher_date)->format('d M Y') }}
Voucher No : {{ $accountingVoucher->voucher_number }}
@if ($company->show_remarks && $accountingVoucher->remarks != null)
Remarks : {{ $accountingVoucher->remarks }}
@endif @if ($accountingVoucher->ship_to_address != null)
Ship To : {{ $accountingVoucher->ship_to_address }}
@endif @if ($accountingVoucher->costCenter != null)
Cost Center : {{ $accountingVoucher->costCenter->name }}
@endif
@if ($accountingVoucher->items->sum('igst') > 0) @else @endif @if ($accountingVoucher->items->sum('cess') > 0) @endif @foreach ($accountingVoucher->items as $key => $item) @if ($accountingVoucher->items->sum('igst') > 0) @else @endif @if ($accountingVoucher->items->sum('cess') > 0) @endif @endforeach @if ($accountingVoucher->items->sum('igst') > 0) @else @endif @if ($accountingVoucher->items->sum('cess') > 0) @endif
SN Item HSN Gst% MRP Unit Qty Rate Gross
Value
Dis
(%)
Taxable
Value
IGSTCGST SGSTCESSTotal
{{ $key + 1 }} {{ $item->stockItem->name }} {{ $item->stockItem->hsn_code }} {{ $item->gst_per }} {{ $item->stockItem->getMrp($accountingVoucher->voucher_date) }} {{ $item->unit->symbol }} {{ $item->quantity }} {{ $roundOffToTwoDecimals ? round($item->price, 2) : $item->price }} {{ $roundOffToTwoDecimals ? round($item->gross_value, 2) : $item->gross_value }} {{ $roundOffToTwoDecimals ? round($item->disc_percentage, 2) : $item->disc_percentage }} {{ $roundOffToTwoDecimals ? round($item->taxable_value, 2) : $item->taxable_value }} {{ $roundOffToTwoDecimals ? round($item->igst, 2) : $item->igst }} {{ $roundOffToTwoDecimals ? round($item->cgst, 2) : $item->cgst }} {{ $roundOffToTwoDecimals ? round($item->sgst, 2) : $item->sgst }} {{ $roundOffToTwoDecimals ? round($item->cess, 2) : $item->cess }} {{ $roundOffToTwoDecimals ? round($item->total, 2) : $item->total }}
Total {{ number_format($accountingVoucher->items->sum('taxable_value'), 2) }} {{ number_format($accountingVoucher->items->sum('igst'), 2) }} {{ number_format($accountingVoucher->items->sum('cgst'), 2) }} {{ number_format($accountingVoucher->items->sum('sgst'), 2) }} {{ number_format($accountingVoucher->items->sum('cess'), 2) }} {{ number_format($accountingVoucher->items->sum('total'), 2) }}
@if ($company->bankLedger != null) @endif @if ($company->show_outstanding && $accountingVoucher->debitLedger->name != 'Cash') @endif
Bank Name : {{ $company->bankLedger->name }}
Account No : {{ $company->bankLedger->account_number }}
@if ($company->bankLedger->account_holder_name != null)
Account Holder Name : {{ $company->bankLedger->account_holder_name }}
@endif
IFSC Code : {{ $company->bankLedger->ifsc_code }}
Branch : {{ $company->bankLedger->branch }}
Total Taxable Value : Rs.{{ number_format($accountingVoucher->items->sum('taxable_value'), 2) }}
Total CGST : Rs.{{ number_format($accountingVoucher->items->sum('cgst'), 2) }}
Total SGST : Rs.{{ number_format($accountingVoucher->items->sum('sgst'), 2) }}
Discount : Rs.{{ $accountingVoucher->discount ?? '0.00' }}
Freight/Etc : Rs.{{ $accountingVoucher->freight }}
Round Off : Rs.{{ $accountingVoucher->round_off }}
Grand Total : Rs.{{ $accountingVoucher->amount }}
Prev Day Balance : Rs.{{ $accountingVoucher->previousBalance }} {{ $accountingVoucher->previousBalanceDrCr }}
Bill Date Summary :
@foreach ($accountingVoucher->todayVouchers as $todayVoucher)
{{ $todayVoucher->voucherType->name }} - {{ $todayVoucher->voucher_number }} : Rs.{{ $todayVoucher->amount }}
@endforeach
Bill Day Balance : Rs.{{ $accountingVoucher->todayBalance }} {{ $accountingVoucher->todayBalanceDrCr }}

Total Outstanding : Rs.{{ $accountingVoucher->totalOutstanding }} {{ $accountingVoucher->totalOutstandingDrCr }}
Authorized Signature
@if ($accountingVouchers->last() != $accountingVoucher)
@endif @endforeach