{{$user['username']}} has access as {{$user['level']}}.

{{$user['level']}} @if($user['level'] == 'Super Admin') has access to All Features.@endif @if($user['level'] == 'Admin') has access to limited features.@endif @if($user['level'] == 'Outlet') has no access to backend.@endif

Do You want to change {{$user['username']}}'s access level?

@if($user['level'] != 'Admin')
@csrf @method('PUT')
@endif @if($user['level'] != 'Super Admin' && Session::get('level') == 'Super Admin')
@csrf @method('PUT')
@endif @if($user['level'] != 'Outlet')
@csrf @method('PUT')
@endif
@if($user['level'] == 'Admin')
@csrf @method('PUT')
Admin Access Feature
@php $order = [ 'List' => 0, 'Create' => 1, 'Detail' => 2, 'Update' => 3, 'Delete' => 4, ]; @endphp @foreach($features as $module => $list_feature)
@php usort($list_feature, function ($a, $b) use ($order) { return ($order[$a['feature_type']]??9) <=> ($order[$b['feature_type']]??9); }); @endphp @foreach($list_feature as $x => $feature) @endforeach
@endforeach
@endif