{!! Form::open(array('role' => 'form', 'files'=>'true', 'class'=>'form-horizontal form-groups')) !!}
{!! Form::label('company_id_fk', $data['attributes']['company_id_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('company_id_fk', $data['companyData'], $data['model']->company_id_fk, ['class' => 'form-control getProject', 'id' => 'company_id_fk']) !!}

{{ $errors->error->first('company_id_fk') }}

{!! Form::label('project_id_fk', $data['attributes']['project_id_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('project_id_fk', array(''=>'Select any'), $data['model']->project_id_fk, ['class' => 'form-control getBranch', 'id' => 'project_id_fk']) !!}

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

{!! Form::label('branch_id_fk', $data['attributes']['branch_id_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('branch_id_fk', array(''=>'Select any'), $data['model']->branch_id_fk, ['class' => 'form-control getUser', 'id' => 'branch_id_fk']) !!}

{{ $errors->error->first('branch_id_fk') }}

{!! Form::label('users_id_fk', $data['attributes']['users_id_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('users_id_fk', [''=>'Select any'], $data['model']->users_id_fk, ['class' => 'form-control', 'id' => 'users_id_fk']) !!}

{{ $errors->error->first('users_id_fk') }}

{!! Form::label('document_type_fk', $data['attributes']['document_type_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('document_type_fk', $data['documentTypeOption'], $data['model']->document_type_fk, ['class' => 'form-control', 'id' => 'document_type_fk']) !!}

{{ $errors->error->first('document_type_fk') }}


Warning: Undefined variable $data in /home/shikkhaplus/public_html/resources/views/hr1/documentManager/form.blade.php on line 49

Warning: Trying to access array offset on value of type null in /home/shikkhaplus/public_html/resources/views/hr1/documentManager/form.blade.php on line 49

Fatal error: Uncaught Error: Class name must be a valid object or a string in /home/shikkhaplus/public_html/resources/views/hr1/documentManager/form.blade.php:49 Stack trace: #0 {main} thrown in /home/shikkhaplus/public_html/resources/views/hr1/documentManager/form.blade.php on line 49