@extends('layouts.app') @section('title', '功能管理中心') @php use App\Http\Controllers\ModulePermissionController; $groupMeta = [ '人事服務' => ['icon' => 'bi-people', 'bg' => '#ede9fe', 'color' => '#6d28d9'], '資安服務' => ['icon' => 'bi-shield-lock', 'bg' => '#fee2e2', 'color' => '#b91c1c'], '主機管理' => ['icon' => 'bi-server', 'bg' => '#e0f2fe', 'color' => '#0369a1'], '資安' => ['icon' => 'bi-shield-check', 'bg' => '#fef9c3', 'color' => '#854d0e'], '專案' => ['icon' => 'bi-kanban', 'bg' => '#dbeafe', 'color' => '#1d4ed8'], '功能管理' => ['icon' => 'bi-gear', 'bg' => '#fef3c7', 'color' => '#b45309'], '系統' => ['icon' => 'bi-cpu', 'bg' => '#f1f5f9', 'color' => '#475569'], '其他' => ['icon' => 'bi-grid', 'bg' => '#faf5ff', 'color' => '#7c3aed'], ]; @endphp @push('styles') @endpush @section('content')

功能管理中心

管理各功能模組的使用者存取權限,共 {{ $userCount }} 位使用者

@foreach ($grouped as $groupName => $modules) @php $meta = $groupMeta[$groupName] ?? ['icon' => 'bi-grid', 'bg' => '#f1f5f9', 'color' => '#475569']; @endphp
{{ $groupName }}
{{ $modules->count() }} 個功能模組
@foreach ($modules as $module) @php $key = $module->controller . '|' . $module->route_name; $cnt = $permCounts->get($key)?->cnt ?? 0; @endphp
{{ $module->name }}
{{ $cnt }} / {{ $userCount }}
管理
@endforeach
@endforeach
@endsection