@lang("content.list")

@if (in_array(\Auth::user()->user_role_id, [ROLE_ADMIN, ROLE_SUPER_ADMIN])) @endif @foreach($employees as $j => $user) @php $no = $j + 1 @endphp @php $picture = !is_null($user->thumb) ? '/storage/users/'.$user->thumb : '/assets/img/default-user-picture.png'; @endphp @php $phone = unserialize($user->phone) @endphp @if (in_array(\Auth::user()->user_role_id, [ROLE_ADMIN, ROLE_SUPER_ADMIN])) @else @endif @endforeach
No @lang("content.picture") @lang("content.first_name") @lang("content.last_name") @lang("content.position") @lang("content.location") @lang("content.phone") Reports ToPrivilege
{{ $no }}id}") }}" target="_blank"> id}/edit") }}" target="_blank">{{ $user->first_name }} id}/edit") }}" target="_blank">{{ $user->last_name }} position_id}") }}" target="_blank">{{ $user->position_title }} {{ $user->location ? $user->location->airport->name : "" }} {{ isset($phone['office']) ? $phone['office'] : "-" }} {!! Form::open(['method' => 'GET', 'class' => 'form-inline formUsers', 'id' => 'formReportsTo']) !!} {!! Form::hidden('departmentId', \request("departmentId")) !!} {!! Form::hidden("user_id", $user->id) !!} {!! Form::select("reports_to_user_id", $usersList, $user->reports_to_user_id, ["class" => "form-control input-sm floatOnly", "style" => "width: 130px; margin-right: 5px;" ]) !!} {!! Form::submit("Save", ["name" => "ReportsTo", "class" => "btn btn-success btn-sm floatOnly" ]) !!} {!! Form::close() !!} {!! Form::open(['method' => 'GET', 'class' => 'form-inline formUsers', 'id' => 'formUserRole']) !!} {!! Form::hidden('departmentId', \request("departmentId")) !!} {!! Form::hidden("user_id", $user->id) !!} {!! Form::select("role_id", $roles, $user->user_role_id, ["class" => "form-control input-sm floatOnly", "style" => "width: 130px; margin-right: 5px;" ]) !!} {!! Form::submit("Save",["name" => "Role", "class" => "btn btn-primary btn-sm floatOnly" ]) !!} {!! Form::close() !!} {{ $user->last_name }} {{ $user->first_name }} {{ $user->position_title }} {{ $user->location ? $user->location->airport->name : "" }} {{ isset($phone['office']) ? $phone['office'] : "-" }} {{ $user->reportsTo ? $user->reportsTo->userFullName : "" }}