{!! Form::open(['url'=>'/hr/autoVoucherTypeSettings/create','class'=>'form-horizontal']) !!}
{{ Form::label('project_id_fk','Project') }} {!! Form::select('project_id_fk', $projectOptionList, $projectIdSelected ?: null, ['class' => 'form-control project','autocomplete'=>'off']) !!} @if ($errors->has('project_id_fk'))

{{ $errors->first('project_id_fk') }}

@endif
{{ Form::label('project_type_id_fk','Project Type') }} {!! Form::select('project_type_id_fk', [],old('project_type_id_fk'), ['class' => 'form-control project-type','autocomplete'=>'off']) !!} @if ($errors->has('project_type_id_fk'))

{{ $errors->first('project_type_id_fk') }}

@endif
{{ Form::label('staff_type_id_fk','Staff Type') }} {!! Form::select('staff_type_id_fk', $managementStaffOptionList,$managementStaffIdSelected ?: null, ['class' => 'form-control staff-type','autocomplete'=>'off']) !!} @if ($errors->has('staff_type_id_fk'))

{{ $errors->first('staff_type_id_fk') }}

@endif
{{ Form::label('voucher_type_id_fk','Voucher Type') }} {!! Form::select('voucher_type_id_fk', $voucherTypeOptionList, $voucherTypeIdSelected ?: null, ['class' => 'form-control voucher-type','autocomplete'=>'off']) !!} @if ($errors->has('voucher_type_id_fk'))

{{ $errors->first('voucher_type_id_fk') }}

@endif
""
{!! Form::button("",['type'=>'submit','class'=>'btn btn-info']) !!}
{!! Form::close() !!}
@if($isNagodanFormShowing)
{!! Form::open(['url'=>$urlNagodanForm,'class'=>'form-horizontal','id'=>'form-nagodan']) !!} {!! Form::hidden('project_id_fk', $projectIdSelected ?: null, ['class' => 'form-control project project-hidden','autocomplete'=>'off']) !!} {!! Form::hidden('project_type_id_fk', $projectTypeIdSelected ?: null, ['class' => 'form-control project-type project-type-hidden','autocomplete'=>'off']) !!} {!! Form::hidden('staff_type_id_fk', $managementStaffIdSelected ?: null, ['class' => 'form-control staff-type-hidden','autocomplete'=>'off']) !!} {!! Form::hidden('voucher_type_id_fk', $voucherTypeIdSelected ?: null, ['class' => 'form-control voucher-type-hidden','autocomplete'=>'off']) !!}
@if($autoVoucherTypeItemSettingSelected) @foreach($autoVoucherTypeItemSettingSelected as $item) @endforeach @else @endif
Debit Credit
{!! Form::select('debit[]', $optionListDebit, empty($item->hr_transaction_heads_id_fk_for_debit) ? $item->acc_account_ledger_id_fk_for_debit :$item->hr_transaction_heads_id_fk_for_debit, ['class' => 'form-control debit','autocomplete'=>'off']) !!} {!! Form::select('credit[]', $optionListCredit, empty($item->hr_transaction_heads_id_fk_for_credit) ? $item->acc_account_ledger_id_fk_for_credit :$item->hr_transaction_heads_id_fk_for_credit, ['class' => 'form-control credit','autocomplete'=>'off']) !!}
{!! Form::select('debit[]', $optionListDebit, null, ['class' => 'form-control debit','autocomplete'=>'off']) !!} @if ($errors->has('debit'))

{{ $errors->first('transaction_head_id_fk') }}

@endif
{!! Form::select('credit[]', $optionListCredit, null, ['class' => 'form-control credit','autocomplete'=>'off']) !!} @if ($errors->has('credit[]'))

{{ $errors->first('transaction_head_id_fk') }}

@endif
Add
{!! Form::close() !!} @endif