@extends('admin.admin_dashboard') @section('admin')
@if($errors->any())
Please fix the following issues:
    @foreach($errors->all() as $err)
  • {{ $err }}
  • @endforeach
@endif
@csrf @if(isset($role)) @method('PUT') @endif

{{ isset($role) ? 'Edit Role: '.$role->name : 'Create New Role' }}

Assign permissions carefully to control user access.

0 Selected
@php $grouped = $permissions->groupBy('group_by'); $assigned = isset($rolePermissions) ? $rolePermissions : []; @endphp
@foreach($grouped as $group => $perms) @php $slug = Str::slug($group ?? 'general'); $checkedCount = $perms->whereIn('id', $assigned)->count(); @endphp

@foreach($perms as $perm)
@endforeach
No permissions found in this group.
@endforeach
Cancel
@endsection