{!! Form::open(['method' => 'POST', 'url' => url("staff/{$user->id}"), 'class' => 'exclude-form']) !!} {{----}} {{----}} {{----}} {{----}} @php $locationAirport = $user->location && $user->location->airport ? $user->location->airport : null @endphp @if (isAdminOrSuperAdmin()) @endif
@lang("content.first_name") {{ $user->first_name ? $user->first_name : 'Empty' }}
@lang("content.middle_name") {{ $user->middle_name ? $user->middle_name : 'Empty' }}
@lang("content.last_name") {{ $user->last_name ? $user->last_name : 'Empty' }}
@lang("content.email") {{ $user->email ? $user->email : 'Empty' }}
@lang("content.dob") {{ $user->dob ? date('d-M-Y', strtotime($user->dob)) : 'Empty' }}
@lang("content.gender")--}} {{----}} {{--{{ $user->gender ? $user->gender : 'Empty' }}--}} {{--
@lang("content.doj") {{ $user->doj ? date('d-M-Y', strtotime($user->doj)) : 'Empty' }}
@lang("content.location") {{ $locationAirport ? getAirportIataIcao($user->location->airport) : 'Empty' }}
@lang("content.work_type") {{ $user->work_type ? workTypeSelected($user->work_type) : 'Empty' }} {{-- --}} {{-- {!! count($languages) ? implode(', ', $languages) : 'Empty' !!}--}}
@lang("content.designated_approver") {{ $user->designated_approver ? "Yes" : 'No' }}
@lang("content.contractor") {{ $user->is_contractor ? "Yes" : 'No' }}
@lang("content.department") {!! $user->department && isset($user->department[0]) ? $user->department[0]->name : 'Empty' !!}
@lang("content.position") {!! $user->position && isset($user->position[0]) ? $user->position[0]->name : 'Empty' !!}
@lang("content.phone") {{ $user->phone ? $user->phone : 'Empty' }}
@lang("content.mobile")(@lang("content.personal")) {{ $user->mobile ? $user->mobile : 'Empty' }}
@lang("content.mobile")(@lang("content.company")) {{ $user->company_mobile ? $user->company_mobile : 'Empty' }}
@lang("content.company") {{ $user->company ? $user->company : 'Empty' }}
@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"]) !!}
@if (isSuperAdmin()) id}") }}" target="_blank" class="btn btn-success">Login as User @endif {!! Form::hidden("update_page", 1) !!} {!! Form::submit(trans("content.reset_password"), ['class'=>'btn btn-primary', "id" => "reset_pswd" ])!!}
{!! Form::close() !!}