@extends('hr_main') @section('title', '| Employee') @section('content')
Employee Information
@include('hr.employee.basicInfo.tabNavBasic')
{!! Form::open(array('files' => 'true', 'role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'formId', 'autocomplete'=>'off')) !!}
@php $k = 0; $data['accounts']->count() == 0 ? $data['accounts']->push($data['model']) : null; @endphp @foreach ($data['accounts'] as $account) @php // if the login user is from headoffice then he/she can edit $isDisabled = $account->status == 'Approved' && Auth::user()->branchId != 1 ? 'disabled' : false; @endphp @endforeach
@if ($isDisabled) @endif
{!! $data['attributes']['bank_id'] !!} {!! Form::select( 'bank_id[]', ['' => 'Select any'] + $data['banks'], isset($account) ? $account->bank_id : null, [$isDisabled, 'class' => 'form-control bank_id', 'onchange' => 'getBankBranch(' . ++$k . ', this)'] ) !!}
{!! $data['attributes']['branch'] !!} {!! Form::select( 'branch[]', ['' => 'Select any'] + (isset($account->bank_id) ? $data['branchUnderBank'][$account->bank_id] : []), isset($account->bank_id) ? $account->branch : null, [$isDisabled, 'class' => 'form-control', 'id' => 'branch_for_' . $k, 'type' => 'text'] ) !!}
{!! $data['attributes']['account_type'] !!} {!! Form::select( 'account_type[]', ['' => 'Select any'] + $data['account_types'], isset($account) ? $account->account_type : null, [$isDisabled, 'class' => 'form-control account_type'] ) !!}
{!! $data['attributes']['account_no'] !!} {!! Form::text('account_no[]', isset($account) ? $account->account_no : null, [ $isDisabled, 'class' => 'form-control account_no', 'type' => 'text', 'placeholder' => $data['placeholder']['account_no'] ]) !!}
account_type, [4,5])) hidden @endif> Routing Number {!! Form::text( 'routing_numbers[]', isset($account) && !empty($account->routing_number) ? $account->routing_number : '', [$isDisabled, 'class' => 'form-control routing_number', 'placeholder' => 'Routing Number'] ) !!}
{!! $data['attributes']['effect_date'] !!} {!! Form::text( 'effect_date[]', isset($account) && !empty($account->effect_date) ? date('d-m-Y', strtotime($account->effect_date)) : '', [$isDisabled, 'class' => 'form-control datepicker', 'placeholder' => $data['placeholder']['effect_date']] ) !!}


{!! Form::close() !!}

Warning: Undefined variable $data in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/employee/basicInfo/editBasicAccountInformation.blade.php on line 167

Warning: Trying to access array offset on value of type null in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/employee/basicInfo/editBasicAccountInformation.blade.php on line 167

Warning: foreach() argument must be of type array|object, null given in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/employee/basicInfo/editBasicAccountInformation.blade.php on line 167

Warning: Undefined variable $data in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/employee/basicInfo/editBasicAccountInformation.blade.php on line 172

Warning: Trying to access array offset on value of type null in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/employee/basicInfo/editBasicAccountInformation.blade.php on line 172

Warning: foreach() argument must be of type array|object, null given in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/employee/basicInfo/editBasicAccountInformation.blade.php on line 172
@endsection @section('footerAssets') @endsection