{!! Form::open(['method' => 'POST', 'url' => url("staff/{$user->id}"), 'class' => 'exclude-form']) !!} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php $full_name = $user->reportsTo ? $user->reportsTo->first_name . " " . $user->reportsTo->last_name : "-" @endphp --}} {{-- --}} {{-- --}}
@lang("content.first_name") {{ $user->first_name }}
@lang("content.last_name") {{ $user->last_name }}
@lang("content.email") {{ $user->email ? $user->email : 'Empty' }}
@lang("content.dob") {{ $user->dob ? date('d-M-Y', strtotime($user->dob)) : '' }}
@lang("content.gender"){{ $user->gender }}
@lang("content.doj") {{ $user->doj ? date('d-M-Y', strtotime($user->doj)) : '' }}
@lang("content.location") {{ $user->location_id ? $user->location->airport->iata : '' }}
@lang("content.department") {{ $user->department && isset($user->department[0]) ? $user->department[0]->name : '' }}
@lang("content.position") {{ $user->position && isset($user->position[0]) ? $user->position[0]->name : '' }}
@lang("content.reports_to"){{$user->reports_to_user_id ? $full_name : '' }}
@lang("content.work_type") {{ workTypeSelected($user->work_type) }}
@lang("content.phone") {{ $user->phone ? $user->phone : '' }}
@lang("content.mobile")(@lang("content.personal")) {{ $user->mobile ? $user->mobile : '' }}
@lang("content.mobile")(@lang("content.company")) {{ $user->company_mobile ? $user->company_mobile : '' }}
@lang("content.company") {{ $user->company ? $user->company : '' }}
@lang("content.password")* {!! Form::password('password', ['class' => 'form-control', 'placeholder' => 'Password', "required" => "required"]) !!}
@lang("content.confirm_password")* {!! Form::password('password_confirmation', ['class' => 'form-control', 'placeholder' => 'Confirm Password', "required" => "required"]) !!}
{!! Form::hidden("update_page", 2) !!} {!! Form::submit(trans("content.reset_password"), array('class'=>'btn btn-primary'))!!}
{!! Form::close() !!}