@php $accAccountLedger = DB::table('acc_account_ledger')->get(); $transactionHeadCount = $transactionHeads->count(); $rowSpanProjectType = $transactionHeadCount + $transactionHeadCount; @endphp {!! Form::open(['url'=>'/hr/autoVoucherSettings/save','class'=>'form-horizontal']) !!}
{{-- When auto voucher settings dont exist --}} @if( empty($autoVoucherSettingItems) ) {{ Form::hidden('project_id_fk', $projectSelected->id) }} @foreach($projectTypes as $projectTypeIndex => $projectType) @foreach($staffTypes as $staffTypeIndex => $staffType) @foreach($transactionHeads as $transactionHeadIndex => $transactionHead) {{ Form::hidden('project_type_id_fk[]', $projectType->id) }} {{ Form::hidden('staff_type_id_fk[]', $staffType->id) }} {{ Form::hidden('transaction_head_id_fk[]', $transactionHead->id) }} @if($staffTypeIndex == 0 && $transactionHeadIndex == 0) @endif @if($transactionHeadIndex == 0) @endif @endforeach @endforeach @endforeach {{-- When auto voucher settings exist --}} @else {{ Form::hidden('project_id_fk', $projectSelected->id) }} @foreach($autoVoucherSettingItems as $autoVoucherSettingItemIndex => $autoVoucherSettingItems) {{ Form::hidden('project_type_id_fk[]', $autoVoucherSettingItems['project_type_id_fk']) }} {{ Form::hidden('staff_type_id_fk[]', $autoVoucherSettingItems['hr_staff_types_id_fk']) }} {{ Form::hidden('transaction_head_id_fk[]', $autoVoucherSettingItems['hr_transaction_heads_id_fk']) }} @if($counterForProjectType == $autoVoucherSettingItemIndex)
Warning: Undefined variable $transactionHeadCount in /home/shikkhaplus/public_html/resources_16_05_2024/views/hr/autoVoucherSettings/_configForm01.blade.php on line 60

Warning: Undefined variable $transactionHeadCount in /home/shikkhaplus/public_html/resources_16_05_2024/views/hr/autoVoucherSettings/_configForm01.blade.php on line 60
@endif @if($counterForType == $autoVoucherSettingItemIndex)
Warning: Undefined variable $transactionHeadCount in /home/shikkhaplus/public_html/resources_16_05_2024/views/hr/autoVoucherSettings/_configForm01.blade.php on line 66
@endif @endforeach @endif
Project Type Type Transaction Head Ledger Code ( Pri ) Ledger Code ( Int )
{{ $projectType->name }}{{ $staffType->name }}{{ $transactionHead->name }} {{ Form::text('ledger_account_pri_code_id[]',null,['class'=>'form-control text-right js-borderEffect','autocomplete'=>'off']) }} {{ Form::text('ledger_account_int_code_id[]',null,['class'=>'form-control text-right js-borderEffect','autocomplete'=>'off']) }}
{{ $projectType->find($autoVoucherSettingItems['project_type_id_fk'])->name }} {{ $staffType->find($autoVoucherSettingItems['hr_staff_types_id_fk'])->name }} {{ $transactionHead->find( $autoVoucherSettingItems['hr_transaction_heads_id_fk'] )->name ?? '' }} {{ Form::text('ledger_account_pri_code_id[]', $accAccountLedger->where('id',$autoVoucherSettingItems['acc_account_ledger_id_fk_for_ledger_code_pri'])->first()->code ?? '', ['class'=>'form-control text-right js-borderEffect','autocomplete'=>'off']) }} {{ Form::text('ledger_account_int_code_id[]', $accAccountLedger->where('id',$autoVoucherSettingItems['acc_account_ledger_id_fk_for_ledger_code_int'])->first()->code ?? '', ['class'=>'form-control text-right js-borderEffect','autocomplete'=>'off']) }}
{{-- ./col-md-12 --}}
{{-- ./row --}}

Reset {!! Form::button(" Save",['type'=>'submit','class'=>'btn btn-success']) !!}
{!! Form::close() !!}