{{ $no }} |
@if (in_array(\Auth::user()->user_role_id, [ROLE_ADMIN, ROLE_SUPER_ADMIN]))
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() !!}
|
@else
 |
{{ $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 : "" }} |
@endif
@endforeach