@extends('layouts.default') @section('title', 'User Details') @push('head') @endpush @php use App\Http\Controllers\Admin\UserDataTableController; $ml1=UserDataTableController::getMenuLevel1()->toArray(); @endphp @section('content') @php $rdata=[]; @endphp @if(!empty($userRoles)) @if(count($userRoles)>0) @foreach($userRoles as $item_user_roles) @php $rdata[]=$item_user_roles->id; @endphp @endforeach @endif @endif @php $pdata=[]; @endphp @if(!empty($userMenuPermission)) @if(count($userMenuPermission)>0) @foreach($userMenuPermission as $item_user_menus) @php $pdata[]=$item_user_menus->menu_level_1_id.'_'.$item_user_menus->menu_level_2_id.'_'.$item_user_menus->menu_level_3_id; @endphp @endforeach @endif @endif @if(!empty($userData)) @if(count($userData)>0) @foreach($userData as $item_user)

USER DETAILS

User Details

{{$item_user->id}}
{{$item_user->name}}
{{$item_user->email}}
{{date('d/m/Y H:i:s',strtotime($item_user->created_at))}}
@csrf

Roles

@if(!empty($roles)) @if(count($roles)>0) @foreach($roles as $item_roles)
id) , $rdata) ? 'checked' : '' }} value="{{$item_roles->id}}"/>
@endforeach
@endif @endif
@csrf

Menu Permissions

Menu (Level 1)
Menu (Level 2)
Menu (Level 3)
@if(!empty($ml1)) @if(count($ml1)>0) @foreach($ml1 as $item_ml1)
menu_level_1_id.'_0_0') , $pdata) ? 'checked' : '' }}/>
@php $ml2=UserDataTableController::getMenuLevel2($item_ml1->menu_level_1_id)->toArray(); @endphp
@if(!empty($ml2)) @if(count($ml2)>0) @foreach($ml2 as $item_ml2)
menu_level_1_id.'_'.$item_ml2->menu_level_2_id.'_0'), $pdata) || in_array(($item_ml1->menu_level_1_id.'_0_0') , $pdata) ? 'checked' : '' }}/>
@php $ml3=UserDataTableController::getMenuLevel3($item_ml2->menu_level_1_id,$item_ml2->menu_level_2_id)->toArray(); @endphp
@if(!empty($ml3)) @if(count($ml3)>0) @foreach($ml3 as $item_ml3)
menu_level_1_id.'_'.$item_ml2->menu_level_2_id.'_'.$item_ml3->menu_level_3_id) , $pdata) || in_array(($item_ml1->menu_level_1_id.'_'.$item_ml2->menu_level_2_id.'_0') , $pdata) || in_array(($item_ml1->menu_level_1_id.'_0_0') , $pdata) ? 'checked' : '' }}/>
@endforeach @endif @endif
@endforeach @endif @endif
@endforeach @endif @endif
@endforeach @endif @endif @endsection @push('scripts') @endpush