{!! Form::open([
'route' => ['sale-voucher.update', $saleVoucher->id],
'onsubmit' => 'BtnSubmit.disabled = true',
'class' => 'row g-3 needs-validation',
'method' => 'post',
'autocomplete' => 'off',
'files' => true,
]) !!}
@csrf
@method('PUT')
{!! Form::select(
'party_account_ledger_id',
['' => '--Select--'] + $partyLedger,
$saleVoucher->party_account_ledger_id,
['class' => 'form-control select2', 'id' => 'party_account_ledger_id', 'required'],
) !!}
{{ $errors->first('party_account_ledger_id') }}
{{-- hidden inputs --}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
{{ $errors->first('voucher_date') }}
--}}
{{--
--}}
{{ $errors->first('doc') }}
@if ($saleVoucher->doc != asset('storage'))
View Doc
@endif
{{-- Other Expense --}}
@php
$j = 10;
@endphp
@if (!empty($saleVoucher->voucherExpense) && count($saleVoucher->voucherExpense) > 0)
@foreach ($saleVoucher->voucherExpense as $expense)
@php
$j++;
@endphp
@endforeach
@endif
{{-- Show GST --}}
{{-- Show Calculation --}}
{{-- Payments --}}
@php
$k = 10;
@endphp
@if (!empty($saleVoucher->voucherPayment) && count($saleVoucher->voucherPayment) > 0)
@foreach ($saleVoucher->voucherPayment as $payment)
@php
$k++;
@endphp
@endforeach
@endif
{{-- Paid and Final Amount --}}
{{ $errors->first('remark') }}
{!! Form::close() !!}