@foreach ($accountingVouchers as $accountingVoucher) @if ($logoPath != null)
@else

{{ $company->name }}

@endif {{--

{{ $company->name }}

--}}

{{ $company->address }}

PH:{{ $company->phone }}

GST:{{ $company->gst }}


@else @foreach ($paymentLedgers as $paymentLedger) @php $ledger = App\Models\AccountingVoucherDetails::where( 'accounting_voucher_id', $accountingVoucher->id, ) ->where('ledger_id', $paymentLedger->id) ->first(); @endphp @if ($ledger != null) {{ $paymentLedger->name }}({{ $ledger->amount }}), @endif @endforeach @endif
Party: @if ($accountingVoucher->debit_ledger_id != null) {{ $accountingVoucher->debitLedger->name }}
Billed Staff:{{ $accountingVoucher->user->name }} Date:{{ date('d-m-Y', strtotime($accountingVoucher->voucher_date)) }}
Time :{{ \Carbon\Carbon::parse($accountingVoucher->created_at)->timezone('Asia/Kolkata')->format('h:i A') }}
Staff:{{ $accountingVoucher->costCenter ? $accountingVoucher->costCenter->name : '' }} Invoice No:{{ $accountingVoucher->voucher_number }}

@foreach ($accountingVoucher->items as $key => $item) @endforeach @if ($accountingVoucher->items->count() < 5) @for ($i = $accountingVoucher->items->count(); $i <= 4; $i++) @endfor @endif @if ($accountingVoucher->sales_return_id != null) @php $returnAmount = \App\Models\AccountingVoucher::find($accountingVoucher->sales_return_id)->amount; $netAmount = $accountingVoucher->amount - $returnAmount; @endphp @else @endif {{-- --}}
Code Items Tax% Qty Rate Amount
{{ $key + 1 }} {{ $item->stockItem->internal_barcode }} {{ $item->stockItem->name }} {{ $item->gst_per }} {{ $item->quantity }} {{ number_format($item->price_inc_tax, 2) }} {{ number_format($item->total, 2) }}
             
 

Total

{{ number_format($accountingVoucher->items->sum('total'), 2) }}

Discount

{{ number_format($accountingVoucher->discount, 2) }}

Round Off

{{ number_format($accountingVoucher->round_off, 2) }}

Return Amount

{{ number_format($returnAmount, 2) }}

Net Amount

{{ number_format($netAmount, 2) }}

Net Amount

{{ number_format($accountingVoucher->amount, 2) }}

 

Tax Details

Taxable Amount

{{ number_format($accountingVoucher->items->sum('taxable_value'), 2) }}

Tax Amount

{{ number_format($accountingVoucher->items->sum('cgst') + $accountingVoucher->items->sum('sgst') + $accountingVoucher->items->sum('igst'), 2) }}

@php $items = \App\Models\AccountingVoucherItem::where( 'accounting_voucher_id', $accountingVoucher->id, ) ->select( 'accounting_voucher_items.gst_per', DB::raw('SUM(accounting_voucher_items.cgst) as cgst'), DB::raw('SUM(accounting_voucher_items.sgst) as sgst'), ) ->groupBy('accounting_voucher_items.gst_per') ->get(); @endphp @foreach ($items as $item) @endforeach
Tax Rate CGST SGST
{{ $item->gst_per }}% {{ $item->cgst }} {{ $item->sgst }}
Taxable Amount
{{ number_format($accountingVoucher->items->sum('taxable_value'), 2) }}
Tax Amount
{{ number_format($accountingVoucher->items->sum('cgst') + $accountingVoucher->items->sum('sgst') + $accountingVoucher->items->sum('igst'), 2) }}
{!! $company->terms_conditions !!}

THANK YOU FOR SHOPPING WITH US

{{-- @php $payment_link = $company->payment_upi_link; if ($payment_link != null) { $amount = $accountingVoucher->amount; // $payment_link = str_replace('amount', $amount, $payment_link); $qrCode = SimpleSoftwareIO\QrCode\Facades\QrCode::format('png')->size(200)->generate($payment_link); $qrCodeBase64 = base64_encode($qrCode); $qrCodeDataUri = 'data:image/png;base64,' . $qrCodeBase64; } @endphp @if ($payment_link != null)
@endif --}} @if ($accountingVouchers->last() != $accountingVoucher)
@endif @endforeach