@foreach ($accountingVouchers as $accountingVoucher)
|
@if ($pageLogo != null)
|
@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
@if ($show_seller)
@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
|
@endif
|
Buyer Details
Party Name : @if ($accountingVoucher->customer != null)
{{ $accountingVoucher->customer->name }}
@else
{{ $accountingVoucher->debitLedger->legal_name != null ? $accountingVoucher->debitLedger->legal_name : $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 }}
|
@if ($print_type == null || $print_type == 'tax_invoice' || $print_type == 'order') TAX INVOICE @elseif($print_type == 'proforma_invoice') PROFORMA INVOICE @endif |
@if ($qr_code != null)
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
|
| SN | Item | Qty | Unit | {{--Gst% | --}}Price | Gross Value |
Dis (%)@if ($company->show_discount_amount_in_print) (Amt) @endif |
Taxable Value |
CGST | SGST | IGST | CESS | Total | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HSN | Gst% | MRP | |||||||||||||
| {{ $key + 1 }} | {{ $item->stockItem->name }}
@if ($item->variant_id != null)
({{ $item->variant->name }}) @endif @if ($item->remarks != null) ({{ $item->remarks }}) @endif |
{{ $item->quantity }} | {{ $item->unit->symbol }} | {{--{{ $item->gst_per }} | --}}{{ $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 }} @if ($company->show_discount_amount_in_print) ({{ $roundOffToTwoDecimals ? round($item->disc_amount, 2) : $item->disc_amount }}) @endif | {{ $roundOffToTwoDecimals ? round($item->taxable_value, 2) : $item->taxable_value }} | {{ $roundOffToTwoDecimals ? round($item->cgst, 2) : $item->cgst }} | {{ $roundOffToTwoDecimals ? round($item->sgst, 2) : $item->sgst }} | {{ $roundOffToTwoDecimals ? round($item->igst, 2) : $item->igst }} | {{ $roundOffToTwoDecimals ? round($item->cess, 2) : $item->cess }} | {{ $roundOffToTwoDecimals ? round($item->total, 2) : $item->total }} | ||
| {{ $item->stockItem->hsn_code }} | {{ $item->gst_per }} | {{ $item->stockItem->getMrp($accountingVoucher->voucher_date) }} | |||||||||||||
| Total | {{ number_format($accountingVoucher->items->sum('taxable_value'), 2) }} | {{ number_format($accountingVoucher->items->sum('cgst'), 2) }} | {{ number_format($accountingVoucher->items->sum('sgst'), 2) }} | {{ number_format($accountingVoucher->items->sum('igst'), 2) }} | {{ number_format($accountingVoucher->items->sum('cess'), 2) }} | {{ number_format($accountingVoucher->items->sum('total'), 2) }} | |||||||||
|
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 }}
|
@endif
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 }}
|
@if ($company->show_outstanding && $accountingVoucher->debitLedger->name != 'Cash')
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 }}
|
@endif
@if ($seal_image != null)
Authorized Signature
@endif
|