@extends('admin.layout.app') @section('title','Edit Journal Voucher') @push('headerscript') @endpush @section('content')

Edit Journal Voucher

{!! Form::open(['route'=>array('journal-voucher.update', $journal_voucher->id), 'onsubmit'=>"return validateForm()", 'method' => 'put']) !!}
{{$errors->first('voucher_no')}}
{{$errors->first('voucher_date')}}
{!! Form::select("branch_ids", \App\Http\Helpers\Helper::getBranchData(), old("branch_ids", $journal_voucher->branch_id), ['class'=>'form-control select2' ,'id' => 'branch_ids','disabled'] ) !!}
{{$errors->first('created_by')}}
{{$errors->first('description')}}
@foreach($journal_voucher->journalVoucherDetails as $journal_voucher_detail ) @endforeach
S. No. Voucher Type* Account Name* Remark Credit Debit Invoice No. Plate No.
{{$i-9}} {!! Form::select("voucher_type[]", [''=>'Select','Expenses'=>'Expenses','Assets'=>'Assets','Income'=>'Income','Liabilities'=>'Liabilities','Equity'=>'Equity','insurance'=>'Insurance'], old("voucher_type",$journal_voucher_detail->voucher_type), ['class'=>'form-control select2', 'required', 'id'=>'voucher_type'.$i] ) !!} {!! Form::select("account_ledger_id[]", [$journal_voucher_detail->account_ledger_id=>$journal_voucher_detail->accountLedger->account_name], old("account_ledger_id"), ['class'=>'form-control select2', 'required', 'id'=>'account_ledger_id'.$i ] ) !!}
Totals:
{!! Form::close() !!}
@endsection @push('footerscript') @endpush