@extends('layout.app') @section('title', 'Edit Purchase Voucher') @push('header_script') @endpush @section('content')
{!! Form::open([ 'route' => ['purchase-voucher.update', $purchaseVoucher->id], 'onsubmit' => 'BtnSubmit.disabled = true', 'class' => 'row g-3 needs-validation', 'method' => 'put', 'autocomplete' => 'off', 'files' => true, ]) !!}
{{ $errors->first('voucher_no') }}
{!! Form::select( 'party_account_ledger_id', ['' => '--Select--'] + $partyLedger, $purchaseVoucher->party_account_ledger_id, ['class' => 'form-control select2', 'id' => 'party_account_ledger_id', 'required'], ) !!}
{{ $errors->first('party_account_ledger_id') }}
{{-- hidden inputs --}} @php $is_party_cash_bank = 'no'; if ($partyDetails?->accountLedger?->accountGroup?->a_group_name == 'Cash In Hand' || $partyDetails?->accountLedger?->accountGroup?->a_group_name == 'Bank Accounts') { $is_party_cash_bank = 'yes'; } @endphp
{{ $errors->first('voucher_date') }}
{{ $errors->first('created_by') }}
@if ($purchaseVoucher->doc != asset('storage')) View Doc @endif
{{ $errors->first('doc') }}
discount_before_gst == 'yes' ? 'checked' : '' }} class="check me-2" value="yes" style="cursor: pointer!important;">
{{ $errors->first('discount_before_gst') }}
@php $i = 10; @endphp @foreach ($purchaseVoucher->voucherDetails as $details) @php $i++; @endphp @endforeach
Name of Item * Qty * Unit * Rate/Unit * Amount * Discount Tax Rate (%) Tax Amount Total Amount *
{!! Form::select('product_id[]', ['' => '--Select--'] + $product, $details->product_id, [ 'class' => 'form-control select2', 'id' => "product_id_$i", 'required', ]) !!} {!! Form::select('tax_group_id[]', ['' => '--Select--'] + $taxGroup, $details->tax_group_id, [ 'class' => 'form-control select2 taxGroupIds', 'id' => 'tax_group_id_' . $i, 'required', ]) !!}
Total Amount
{{-- Show Calculation --}}
{{-- Discount --}}
Discount (In/Ex):       
{{-- Other Charges --}}
Other Charges:   

@php $j = 10; @endphp @if ($purchaseVoucher->voucherExpense->isNotEmpty()) @foreach ($purchaseVoucher->voucherExpense as $expense)
{{-- --}}
@php $j++; @endphp @endforeach @endif
{{-- GST SHOW --}}
SGST Input :  
CGST Input :  
IGST Input :  
{{-- Gross Total --}}
Gross Total :           
{{-- Other Deductions --}}
Other Deduction:   

@php $l = 10; @endphp @if ($purchaseVoucher->voucherDeduction->isNotEmpty()) @foreach ($purchaseVoucher->voucherDeduction as $deduction)
@php $l++; @endphp @endforeach @endif
{{-- Round Off --}}
Round Off :           
{{-- TCS --}}
TCS Amount :           
{{-- Net Total --}}
Net Total :           
{{-- Total Paid Amount --}}
Paid Amount :             

@php $k = 10; @endphp @if ($purchaseVoucher->voucherPayment->isNotEmpty()) @foreach ($purchaseVoucher->voucherPayment as $payment)
@php $k++; @endphp @endforeach @endif
{{-- Remaining Amount --}}
Remaining Bal :             
{{ $errors->first('remark') }}
{!! Form::close() !!}
@endsection @push('footer_script') @endpush