@extends('layouts.app') @section('title', 'Menu Assignment - ' . $user->name) @section('page-title', 'Menu Assignment') @section('content')
Menu Assignment for {{ $user->name }}
Back to Users
@if(isset($isCurrentUserSuperAdmin) && !$isCurrentUserSuperAdmin)
Note: You can only assign menus and permissions that you have access to.
@endif
@csrf @method('PUT')
Permissions Management @if(isset($isCurrentUserSuperAdmin) && !$isCurrentUserSuperAdmin) (Based on your assigned permissions) @endif
Available Menus @if(isset($isCurrentUserSuperAdmin) && !$isCurrentUserSuperAdmin) (Based on your assigned menus and permissions) @endif
@if($menus->count() === 0)
No menus available. Please assign permissions to this user first.
@endif
User Information
@if($user->profile_photo) {{ $user->name }} @else
@endif
{{ $user->name }}
{{ $user->email }}
Role: {{ ucfirst($user->role) }}
Status: {{ ucfirst($user->status) }}
Assigned Menus: {{ count($assignedMenuIds) }}
Assigned Route: {{ $assignedRoutesCount ?? 0 }} Routes
@if(isset($parentUser) && $parentUser)
Parent User:
{{ $parentUser->name }}
@endif
Users Permissions:
Create View Edit Delete
Dashboard Contain Assignment

Select which content sections should be visible on the user's dashboard.

@php $dashboardContains = []; try { $dashboardContains = $user->dashboard_contains ?? []; } catch (\Exception $e) { $dashboardContains = []; } @endphp

@endsection @section('scripts') @endsection