@extends('layout.app') @section('title', 'Edit Payment Voucher') @push('header_script') @endpush @section('content')
{!! Form::open([ 'route' => ['payment-voucher.update', $paymentVoucher->id], 'onsubmit' => 'BtnSubmit.disabled = true', 'class' => 'row g-3 needs-validation', 'method' => 'put', 'autocomplete' => 'off', 'files' => true, ]) !!}
{!! Form::select( 'party_account_ledger_id', ['' => '--Select--'] + $accountLedger, $paymentVoucher->party_account_ledger_id, ['class' => 'form-control select2', 'id' => 'party_account_ledger_id', 'required'], ) !!}
{{ $errors->first('party_account_ledger_id') }}
{{ $errors->first('voucher_no') }}
{{ $errors->first('voucher_date') }}
{!! Form::select( 'payment_type', ['' => '--Select--', 'cash' => 'Cash', 'bank' => 'Bank'], $paymentVoucher->payment_type, ['class' => 'form-control select2', 'id' => 'payment_type', 'required'], ) !!}
{{ $errors->first('payment_type') }}
{!! Form::select('account_ledger_id', ['' => '--Select--'], $paymentVoucher->account_ledger_id, [ 'class' => 'form-control select2', 'id' => 'account_ledger_id', 'required', ]) !!}
{{ $errors->first('account_ledger_id') }}
{{ $errors->first('created_by') }}
{{ $errors->first('doc') }}
@if ($paymentVoucher && $paymentVoucher->doc !== asset('storage')) View Doc @endif
{{ $errors->first('received_amount') }}
{{ $errors->first('discount_amount') }}
{{ $errors->first('remark') }}
{!! Form::close() !!}
@endsection @push('footer_script') @endpush