@foreach ($accountingVouchers as $accountingVoucher)
|
@if ($pageLogo != null)
|
{{ $company->name }}
|
| GSTIN: {{ $company->gst }} | |||
|
@if ($company->fssai_number != null)
FSSAI LICENSE NO : {{ $company->fssai_number }} @endif Details of Reciever(Billed to) Name: {{ $accountingVoucher->customer ? $accountingVoucher->customer->name : ($accountingVoucher->debitLedger->legal_name != null ? $accountingVoucher->debitLedger->legal_name : $accountingVoucher->debitLedger->name) }} Address: {{ $accountingVoucher->customer ? $accountingVoucher->customer->address : $accountingVoucher->debitLedger->address }} State: {{ $accountingVoucher->customer ? $accountingVoucher->customer->state : $accountingVoucher->debitLedger->state }} Mobile: {{ $accountingVoucher->customer ? $accountingVoucher->customer->mobile : $accountingVoucher->debitLedger->mobile_no }} GSTIN No :{{ $accountingVoucher->customer ? '' : $accountingVoucher->debitLedger->gst }} |
TAX
INVOICE
Invoice No : {{ $accountingVoucher->voucher_number }} Invoice Date : {{ date('d-m-Y', strtotime($accountingVoucher->voucher_date)) }} Invoice Type : {{ $accountingVoucher->voucherType->name }} Sales Man : {{ $accountingVoucher->user ? $accountingVoucher->user->name : '' }} Remarks : {{ $accountingVoucher->remarks }} @if ($accountingVoucher->ship_to_address != null) Ship to Address : {{ $accountingVoucher->ship_to_address }} @endif @if ($accountingVoucher->vehicle_no != null) Vehicle No : {{ $accountingVoucher->vehicle_no }} @endif |
||
| sno | Items | HSN | MRP | @foreach ($categories as $category){{ $category->name }} | @endforeachTot Qty |
Tax % | Rate | Amount | |
|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item[0]->stockItem->itemCollection ? $item[0]->stockItem->itemCollection->name : $item[0]->stockItem->name }} | {{ $item[0]->stockItem->hsn_code }} | {{ number_format($item[0]->stockItem->getMrp($accountingVoucher->voucher_date), 2) }} | @foreach ($categories as $category) @php $itemIds = $item->pluck('stock_item_id'); $categoryExist = \App\Models\StockItemCategory::whereIn('stock_item_id', $itemIds) ->where('stock_category_id', $category->id) ->get(); @endphp @if ($categoryExist->isNotEmpty()){{ $item->whereIn('stock_item_id', $categoryExist->pluck('stock_item_id'))->sum('quantity') }} | @else@endif @endforeach | {{ $item->sum('quantity') }} | {{ $item[0]->gst_per }} | {{ number_format($item[0]->price_inc_tax, 2) }} | {{ number_format($item->sum('total'), 2) }} |
| @foreach ($categories as $category) | @endforeach | Total | @foreach ($categories as $category) | @endforeach | {{ $accountingVoucher->items->sum('quantity') }} | {{ number_format($accountingVoucher->items->sum('total'), 2) }} |
| show_outstanding == 1 &&
$accountingVoucher->debitLedger != null &&
!in_array($accountingVoucher->debitLedger->group->name, ['Cash in hand', 'Bank Accounts'])) rowspan="{{ 9 + $accountingVoucher->todayVouchers->count() + 1 + $count }}" @else rowspan= {{ 7 + $count }} @endif>
Amount
In Words ({{ $words }}) @if ($company->bankLedger != null)
Bank Details
@endif
|
Gross Value | {{ number_format($accountingVoucher->items()->sum('gross_value'), 2) }} | ||||||||||||||||||||||||||
| Total IGST | {{ number_format($accountingVoucher->items()->sum('igst'), 2) }} | |||||||||||||||||||||||||||
| Total CGST | {{ number_format($accountingVoucher->items()->sum('cgst'), 2) }} | |||||||||||||||||||||||||||
| Total SGST | {{ number_format($accountingVoucher->items()->sum('sgst'), 2) }} | |||||||||||||||||||||||||||
| Total GST | {{ number_format($accountingVoucher->items()->sum('sgst') + $accountingVoucher->items()->sum('cgst') + $accountingVoucher->items()->sum('igst'), 2) }} | |||||||||||||||||||||||||||
| Bill Discount | {{ number_format($accountingVoucher->discount, 2) }} | |||||||||||||||||||||||||||
| Freight | {{ number_format($accountingVoucher->freight, 2) }} | |||||||||||||||||||||||||||
| {{ $additionalLedger->ledger->name }} | @if ($additionalLedger->dr_or_cr == 'Dr') (-) @else (+) @endif ({{ $additionalLedger->dr_or_cr }}) {{ $additionalLedger->amount }} | |||||||||||||||||||||||||||
| Grand Total | {{ $accountingVoucher->amount }} | |||||||||||||||||||||||||||
| Previous Day Balance | {{ $accountingVoucher->previousBalance }} {{ $accountingVoucher->previousBalanceDrCr }} | |||||||||||||||||||||||||||
| Today's Vouchers | ||||||||||||||||||||||||||||
| {{ $todayVoucher->voucherType->name }} - {{ $todayVoucher->voucher_number }} | {{ $todayVoucher->amount }} {{ $todayVoucher->dr_or_cr }} | |||||||||||||||||||||||||||
| Net Amount | {{ $accountingVoucher->totalOutstanding }} {{ $accountingVoucher->totalOutstandingDrCr }} | |||||||||||||||||||||||||||
For, {{ $company->name }}
@if ($seal_image != null)
|