@extends('layouts.admin.app') @section('content')
Edit Hak Akses
@csrf @method('PUT')
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
{{-- Permission Header --}}
Hak Akses Modul

Pilih permission yang akan diberikan untuk role ini

@php $currentPermissions = old('permissions', $role->permissions()->pluck('name')->toArray()); @endphp {{-- Permission Groups Grid --}}
@foreach ($groupedPermissions as $module => $group)
{{ $group['label'] }} 0/{{ count($group['permissions']) }}
@foreach ($group['permissions'] as $permission) @php $action = explode(' ', $permission->name, 2)[0]; $actionIcons = [ 'lihat' => 'fa-eye', 'buat' => 'fa-plus', 'edit' => 'fa-pen', 'detail' => 'fa-circle-info', 'hapus' => 'fa-trash', 'blokir' => 'fa-ban', ]; $actionColors = [ 'lihat' => '#3b82f6', 'buat' => '#10b981', 'edit' => '#f59e0b', 'detail' => '#8b5cf6', 'hapus' => '#ef4444', 'blokir' => '#ef4444', ]; @endphp @endforeach
@endforeach
@endsection @section('js') @endsection