{{ (Auth::user()->user_type == 1) ? 'Edit User' : 'Edit Personnel' }}
{!! Form::open(['route' => ['users.update', $user->id], 'method' => 'PATCH', 'class' => 'form-horizontal', 'id' => 'editUserPersonalInformationForm']) !!}
{{ Form::label('first_name', 'First Name', []) }} {{ Form::text('first_name', $user->first_name, ['class' => 'form-control', 'id' => 'first_name', 'autocomplete' => 'off', 'placeholder' => 'First Name', 'required']) }}
{{ Form::label('last_name', 'Last Name', []) }} {{ Form::text('last_name', $user->last_name, ['class' => 'form-control', 'id' => 'last_name', 'autocomplete' => 'off', 'placeholder' => 'Last Name', 'required']) }}
{{ Form::label('other_names', 'Other Names', []) }} {{ Form::text('other_names', $user->other_names, ['class' => 'form-control', 'id' => 'other_names', 'autocomplete' => 'off', 'placeholder' => 'Other Names']) }}
{{ Form::label('gender', 'Gender', []) }} {{ Form::select( //SELECT FORM 'gender', //name array( //options '' => '~~SELECT~~', 'MALE' => 'Male', 'FEMALE' => 'Female', ), $user->gender, //value ['id' => 'gender', 'class' => 'form-control', 'required'] //attributes ) }}
{{ Form::label('email', 'Email', []) }} {{ Form::email('email', $user->email, ['class' => 'form-control', 'id' => 'email', 'autocomplete' => 'off', 'placeholder' => 'Date of Birth (YYYY-MM-DD)']) }}
{{ Form::label('dial_code', 'Dial Code', []) }} {{ Form::select( //SELECT FORM 'dial_code', //name $dialCodesList, explode(' ', $user->phone_number)[0], //value ['id' => 'dial_code', 'class' => 'form-control', 'data-toggle' => 'select2', 'required'] //attributes ) }}
{{ Form::label('phone_number', 'Phone Number', []) }} {{ Form::text('phone_number', explode(' ', $user->phone_number)[1], ['class' => 'form-control', 'id' => 'phone_number', 'autocomplete' => 'off', 'placeholder' => 'Phone Number', 'required']) }}
{{ Form::label('nationality', 'Nationality', []) }} {{ Form::select( //SELECT FORM 'nationality', //name $nationalitiesList, 'Zambian', //value ['id' => 'nationality', 'class' => 'form-control', 'data-toggle' => 'select2', 'required'] //attributes ) }}
{{ Form::label('identification_document', 'Identification Document', []) }} {{ Form::select( //SELECT FORM 'identification_document', //name array( //options '' => '~~SELECT~~', 'PASSPORT' => 'PASSPORT', 'NRC' => 'NRC', 'DRIVERS LICENSE' => 'DRIVERS LICENSE', ), $user->identification_document, //value ['id' => 'identification_document', 'class' => 'form-control', 'required'] //attributes ) }}
{{ Form::label('identification_number', 'Identification Number', []) }} {{ Form::text('identification_number', $user->identification_number, ['class' => 'form-control', 'id' => 'identification_number', 'autocomplete' => 'off', 'placeholder' => 'Identification Number', 'required']) }}
{{ Form::label('status', 'Status', []) }} {{ Form::select( //SELECT FORM 'status', //name array( '' => '~~SELECT~~', '1' => 'ENABLED', '2' => 'DISABLED', '3' => 'BLOCKED', ), $user->status, //value ['id' => 'status', 'class' => 'form-control', 'data-toggle' => 'select2', 'required'] //attributes ) }}
{!! Form::close() !!}