@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' => 'needs-validation',
'method' => 'post',
'autocomplete' => 'off',
'files' => true,
]) !!}
@method('PUT')
Customer Details
Customer Name—
GST No—
Mobile—
Address—
City/State—
GST Type—
Opening Balance—
Information Panel
Select Customer *
{!! Form::select(
'party_account_ledger_id',
['' => '--Select--'] + $partyLedger,
old('party_account_ledger_id', $saleVoucher->party_account_ledger_id),
['class' => 'form-control select2', 'id' => 'party_account_ledger_id', 'required'],
) !!}
Balance:
Place of Supply / Tax Type
—
| Item Name * |
HSN |
Batch No |
Expiry |
Qty * |
Rate/Unit * |
Taxable |
GST% |
CGST |
SGST |
IGST |
Total * |
|
@php $ri = 10; @endphp
@foreach($saleVoucher->voucherDetails as $detail)
@php $ri++; @endphp
|
{!! Form::select('product_id[]', ['' => '--Select--'] + $product, old('product_id.' . $loop->index, $detail->product_id), [
'class' => 'form-control select2 item-product-select',
'id' => 'product_id_' . $ri,
'required',
]) !!}
|
{{ $detail->product->hsn_code ?? '—' }} |
|
|
|
|
|
{!! Form::select('tax_group_id[]', ['' => '--Select--'] + $taxGroup, old('tax_group_id.' . $loop->index, $detail->tax_group_id), [
'class' => 'form-control select2 taxGroupIds item-tax-group',
'id' => 'tax_group_id_' . $ri,
'required',
]) !!}
|
|
|
|
|
@if(!$loop->first)
@endif
|
@endforeach
Other Charges & Discounts
Remarks & Payments
@foreach($saleVoucher->payments as $pay)
@endforeach
{!! Form::close() !!}
@include('common.modal.common_party')
@include('common.modal.product')
@include('common.modal.ledger')
@endsection
@push('footer_script')
@endpush