@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' => 'needs-validation', 'id' => 'purchaseVoucherForm', 'method' => 'put', 'autocomplete' => 'off', 'files' => true, ]) !!}
{{-- VOUCHER DETAILS CARD --}}
Voucher Details
Voucher No. *
{{ $errors->first('voucher_no') }}
Voucher Date *
{{ $errors->first('voucher_date') }}
Supplier Invoice No.
{{ $errors->first('supplier_invoice_no') }}
Supplier Invoice Date
{{ $errors->first('supplier_invoice_date') }}
{{-- PARTY DETAILS --}}
Party Details
Party Name{{ $partyDetails ? $partyDetails->party_name : '-' }}
GST No{{ $partyDetails ? $partyDetails->gst_no : 'Not registered' }}
Mobile{{ $partyDetails ? $partyDetails->mobile_no : '-' }}
Address{{ $partyDetails ? $partyDetails->address : '-' }}
City/State{{ $partyDetails ? ($partyDetails->city->city_name ?? '') . ' / ' . ($partyDetails->state->state_name ?? '') : '-' }}
GST Type{{ $partyDetails ? $partyDetails->register_type : '-' }}
Opening Balance—
{{-- INFORMATION PANEL --}}
Information Panel
Select Party * {!! Form::select( 'party_account_ledger_id', ['' => '--Select--'] + $partyLedger, $purchaseVoucher->party_account_ledger_id, ['class' => 'form-control select2', 'id' => 'party_account_ledger_id', 'required'], ) !!}
Balance:
{{ $errors->first('party_account_ledger_id') }}
@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
Place of Supply / Tax Type —
Created By
{{ $errors->first('created_by') }}
Document Upload @if ($purchaseVoucher->doc) View Doc @endif
{{ $errors->first('doc') }}
{{-- SELECTED ITEM DETAILS --}}
Selected Item Details
@if($itemSettings->batch_tracking_enabled) @endif @if($itemSettings->expiry_date_enabled) @endif @php $i = 10; @endphp @foreach ($purchaseVoucher->voucherDetails as $details) @if($itemSettings->batch_tracking_enabled) @endif @if($itemSettings->expiry_date_enabled) @endif @php $i++; @endphp @endforeach
Item Name * HSNBatch No.ExpiryQty * Rate/Unit * Taxable GST% CGST SGST IGST Total *
{!! Form::select('product_id[]', ['' => '--Select--'] + $product, $details->product_id, [ 'class' => 'form-control select2 item-product-select', 'id' => "product_id_$i", 'required', ]) !!} {{ $details->product->hsn_code ?? '—' }} {!! Form::select('tax_group_id[]', ['' => '--Select--'] + $taxGroup, $details->tax_group_id, [ 'class' => 'form-control select2 taxGroupIds item-tax-group', 'id' => "tax_group_id_$i", 'required', ]) !!} @if (!$loop->first) @endif
{{-- OTHER CHARGES & DISCOUNTS --}}
Other Charges & Discounts
@php $j = 10; @endphp {{-- Load existing Before GST expenses --}} @foreach ($purchaseVoucher->voucherExpense as $expense) @php $j++; @endphp @endforeach {{-- Load existing After GST expenses --}} @foreach ($purchaseVoucher->voucherAfterGstCharge as $afterGst) @php $j++; @endphp @endforeach
Description Amount Apply GST%
Before GST adds to (or reduces) taxable value and is taxed. After GST is added directly to invoice total, untaxed. Use negative values for discounts.
{{-- CALCULATION SUMMARY & SUBMIT --}}
Remarks & Payments
{{ $errors->first('remark') }}
@php $k = 10; @endphp @foreach ($purchaseVoucher->voucherPayment as $payment)
@php $k++; @endphp @endforeach
Item Taxable Value₹0.00
Total Taxable Value₹0.00
CGST₹0.00
SGST₹0.00
IGST₹0.00
Invoice Total₹0.00
Total Paid Amount
Remaining Balance
{!! Form::close() !!}
@include('common.modal.common_party') @include('common.modal.product') @include('common.modal.ledger') @endsection @push('footer_script') @endpush