@foreach ($accountingVouchers as $accountingVoucher)

GSTIN: {{ $company->gst }}

TAX INVOICE

Original Copy

{{ $company->name }}


{{ $company->address }}
Phone: {{ $company->phone }} Email: {{ $company->email }}
@if ($printSettings->shipping_address == 0) @else @endif

Invoice No : {{ $accountingVoucher->voucher_number }}

Invoice Date : {{ \Carbon\Carbon::parse($accountingVoucher->voucher_date)->format('d M Y') }}

Invoice No : {{ $accountingVoucher->voucher_number }}

Invoice Date : {{ \Carbon\Carbon::parse($accountingVoucher->voucher_date)->format('d M Y') }}

Shipping Address : {{ $accountingVoucher->ship_to_address }}

Vehicle No : {{ $accountingVoucher->vehicle_no }}

To, {{ $accountingVoucher->debitLedger->name }}
Ph: {{ $accountingVoucher->debitLedger->mobile_no }} GSTIN : {{ $accountingVoucher->debitLedger->gst }} Address : {{ $accountingVoucher->debitLedger->address }} {{-- Ph: {{ $accountingVoucher->debitLedger->mobile_no }} GSTIN : {{ $accountingVoucher->debitLedger->gst }} Address : {{ $accountingVoucher->debitLedger->address }} --}}
@if ($printSettings->mrp) @endif @if ($printSettings->gross) @else @endif @if ($printSettings->show_item_discount_amount == 1) @endif @if ($printSettings->mrp) @endif @if ($printSettings->show_item_discount_amount == 1) @endif @foreach ($accountingVoucher->items as $key => $item) @if ($printSettings->mrp) @endif @if ($printSettings->gross) @else @endif @if ($printSettings->show_item_discount_amount == 1) @endif @endforeach @if ($printSettings->mrp) @endif @if ($printSettings->show_item_discount_amount == 1) @endif @if ($printSettings->mrp) @endif @if ($printSettings->show_item_discount_amount == 1) @endif @php $colspan = 8; if ($printSettings->mrp == 1) { $colspan = $colspan + 1; } if ($printSettings->show_item_discount_amount == 1) { $colspan = $colspan + 1; } @endphp
SN Description of Goods HSN/SAC
Code
MRPQty Unit PriceGross
Amount
Price
Inc Tax
Dis
%
Disc
Amt
Taxable
Amt
Tax
%
GST
Amount
Amount
{{ $key + 1 }} {{ $item->stockItem->name }} @if ($item->variant_id != null)
({{ $item->variant->name }}) @endif @if ($item->remarks != null)
({{ $item->remarks }}) @endif @if ($item->serials != null) @foreach ($item->serials as $serial)
({{ $serial->serial_number }}) @endforeach @endif
{{ $item->stockItem->hsn_code }} {{ number_format($item->stockItem->getMrp($accountingVoucher->voucher_date), 2) }} {{ $item->quantity }} {{ $item->unit->symbol }} {{ number_format($item->price, 2) }} {{ number_format($item->gross_value, 2) }} {{ number_format($item->price_inc_tax, 2) }} {{ number_format($item->disc_percentage, 2) }} {{ $item->disc_amount }} {{ $item->taxable_value }} {{ $item->gst_per }} {{ number_format($item->cgst + $item->sgst + $item->igst, 2) }} {{ number_format($item->total, 2) }}
{{ $accountingVoucher->items->sum('quantity') }} @if ($printSettings->gross) {{ number_format($accountingVoucher->items->sum('gross_value'), 2) }} @endif {{ number_format($accountingVoucher->items->sum('taxable_value'), 2) }} {{ number_format($accountingVoucher->items->sum('cgst') + $accountingVoucher->items->sum('sgst') + $accountingVoucher->items->sum('igst'), 2) }} {{ number_format($accountingVoucher->items->sum('total'), 2) }}
Add : Rounded Off (+) {{ $accountingVoucher->round_off }}
Discount : (-) {{ $accountingVoucher->discount ?? 0 }}
Previous Balance : {{ $accountingVoucher->previousBalance }} {{ $accountingVoucher->previousBalanceDrCr }} GRAND TOTAL {{ $accountingVoucher->amount }}
For {{ $company->name }}
@php $hsn_codes = $accountingVoucher ->items() ->join('stock_items', 'accounting_voucher_items.stock_item_id', '=', 'stock_items.id') ->select( 'stock_items.hsn_code', 'accounting_voucher_items.gst_per', \DB::raw('SUM(accounting_voucher_items.cgst) as cgst'), \DB::raw('SUM(accounting_voucher_items.sgst) as sgst'), \DB::raw('SUM(accounting_voucher_items.igst) as igst'), \DB::raw('SUM(accounting_voucher_items.taxable_value) as taxable_value'), ) ->groupBy('stock_items.hsn_code', 'accounting_voucher_items.gst_per') ->get(); // @dd($hsn_codes); @endphp @foreach ($hsn_codes as $hsn_code) @endforeach
HSN/SAC Taxable Amt. CGST Amt. SGST Amt. Igst
{{ $hsn_code->hsn_code }} {{ number_format($hsn_code->taxable_value, 2) }} {{ number_format($hsn_code->cgst) }} {{ number_format($hsn_code->sgst) }} {{ number_format($hsn_code->igst) }}
Authorised Signatory
@if ($company->bankLedger != null) @if (Auth::user()->company_profile->terms_conditions != null) @endif @if (Auth::user()->company_profile->terms_conditions == null) @endif

Terms And Conditions
{!! Auth::user()->company_profile->terms_conditions !!}
company_profile->terms_conditions != null) width="30%" style="border: 1px solid #000; border-top: none;" @else width="40%" @endif>
Bank Name : {{ $company->bankLedger->name }}
Branch : {{ $company->bankLedger->branch }}
Acc No : {{ $company->bankLedger->account_number }}
IFSC : {{ $company->bankLedger->ifsc_code }}
@endif
@if ($accountingVouchers->last() != $accountingVoucher)
@endif @endforeach