@php // The sidebar is generated from config/modules.php and filtered by the // signed-in user's permissions, so a Media Manager never sees links they // cannot open. $groups = collect(config('modules.modules')) ->filter(fn ($module, $key) => auth()->user()->can($key.'.view')) ->groupBy('group'); $groupLabels = config('modules.groups'); @endphp