@extends('layouts.app') @section('content')
Trang chủ Danh sách vai trò Thêm vai trò

Thêm vai trò mới

@if(session('success')) @endif @if(session('error')) @endif
@csrf

Thông tin chung

Phân quyền hệ thống

Đã chọn: 0
@foreach($routesConfig as $groupKey => $group)
{{ $group['label'] }} 0/{{ count($group['items']) }}
@foreach($group['items'] as $routeName => $routeConfig) @php // Fix lỗi PHP bằng cách dùng Array thay vì match() $colors = [ 'GET' => 'bg-emerald-50 text-emerald-600 border-emerald-200', 'POST' => 'bg-blue-50 text-blue-600 border-blue-200', 'PUT' => 'bg-amber-50 text-amber-600 border-amber-200', 'PATCH' => 'bg-amber-50 text-amber-600 border-amber-200', 'DELETE' => 'bg-rose-50 text-rose-600 border-rose-200', ]; $methodKey = strtoupper($routeConfig['method']); $methodColor = $colors[$methodKey] ?? 'bg-slate-50 text-slate-600 border-slate-200'; @endphp @endforeach
@endforeach
Huỷ bỏ
@endsection @section('scripts') @endsection