@extends('layout.app') @section('title', 'Edit Sale Voucher') @push('header_script') @endpush @section('content')
{!! 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')
{{ $errors->first('voucher_no') }}
{!! 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('voucher_date') }}
{{ $errors->first('created_by') }}
{{ $errors->first('doc') }}
@if ($saleVoucher->doc != asset('storage')) View Doc @endif
discount_before_gst == 'yes' ? 'checked' : '' }} value="yes">
{{ $errors->first('discount_before_gst') }}
@php $i = 10; @endphp @foreach ($saleVoucher->voucherDetails as $items) @php $i++; @endphp @endforeach
Name of item * Qty * Unit * Rate/Unit * Amount * Tax Rate (%) Tax Amount Total Amount *
{!! Form::select('product_id[]', ['' => '--Select--'] + $product, $items->product_id, ['class' => 'form-control select2', 'id' => 'product_id_' . $i, 'required', ]) !!}
Total Amount
{{-- 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 --}}
SGST Input :  
CGST Input :  
IGST Input :  
{{-- Show Calculation --}}
Other Charges:   
Discount :
(Include/Exclude)       
Gross Total :           
{{-- 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 --}}
Paid Amount :             
Remaining Bal :             
{{ $errors->first('remark') }}
{!! Form::close() !!}
@endsection @push('footer_script') @endpush