@php $accAccountLedger = DB::table('acc_account_ledger')->get(); $transactionHeadCount = $transactionHeads->count(); $rowSpanProjectType = $transactionHeadCount + $transactionHeadCount; @endphp {!! Form::open(['url'=>'/hr/autoVoucherSettings/save','class'=>'form-horizontal']) !!}
| Project Type | Type | Transaction Head | Ledger Code ( Pri ) | Ledger Code ( Int ) |
|---|---|---|---|---|
| {{ $projectType->name }} | @endif @if($transactionHeadIndex == 0){{ $staffType->name }} | @endif{{ $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']) }} |