@foreach ($accountingVouchers as $accountingVoucher)
|
@if ($pageLogo != null)
|
@php
$separate_print = $company->separate_print_for_branch;
if ($separate_print == 1) {
$branch = $accountingVoucher->branch;
} else {
$branch = null;
}
@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 }} --}}
|
@endif
|
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->customer != null ? $accountingVoucher->customer->address : $accountingVoucher->debitLedger->address }}
@if ($accountingVoucher->ship_to_address != null)
Ship To : {{ $accountingVoucher->ship_to_address }}
@endif
|
@if ($print_type == null || $print_type == 'tax_invoice') 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') }}
Time : {{ \Carbon\Carbon::parse($accountingVoucher->created_at)->format('h:i A') }}
Voucher No : {{ $accountingVoucher->voucher_number }}
@if ($company->show_remarks && $accountingVoucher->remarks != null)
Remarks : {{ $accountingVoucher->remarks }}
@endif
@if ($accountingVoucher->costCenter != null)
Sales Staff : {{ $accountingVoucher->costCenter->name }}
@endif
|
| SN | Item | Hsn Code | Qty | Unit | Price | Gross Value |
Dis (%) |
Taxable Value |
CGST | SGST | IGST | Total | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $item->stockItem->name }} - {{ $item->stockItem->internal_barcode }} | {{ $item->stockItem->hsn_code }} | {{ $item->quantity }} | {{ $item->unit->symbol }} | {{ $item->price }} | {{ $item->gross_value }} | {{ $item->disc_percentage }} | {{ $item->taxable_value }} | {{ $item->cgst }} | {{ $item->sgst }} | {{ $item->igst }} | {{ $item->total }} | {{-- @if (count($accountingVoucher->items) > 15 && count($accountingVoucher->items) < 22 && ($key > 0 && $key % 23 == 0)) |
| 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('total'), 2) }} |
|
Bank Name : {{ $company->bankLedger->name }}
Account No : {{ $company->bankLedger->account_number }}
IFSC Code : {{ $company->bankLedger->ifsc_code }}
Branch : {{ $company->bankLedger->branch }}
|
@endif
@if ($print_type == null || $print_type == 'tax_invoice')
@if ($accountingVoucher->items->sum('disc_amount') > 0)
Total Item Discount Amt :
Rs.{{ number_format($accountingVoucher->items->sum('disc_amount'), 2) }}
@endif
@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) }}
Total IGST : Rs.{{ number_format($accountingVoucher->items->sum('igst'), 2) }}
Discount : Rs.{{ $accountingVoucher->discount ?? '0.00' }}
@if ($accountingVoucher->additional_discount != null && $accountingVoucher->additional_discount > 0)
Additional Discount : Rs.{{ $accountingVoucher->additional_discount ?? '0.00' }}
@endif
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
Authorized Signature
|