@extends('layouts.admin') @section('title', 'Permission Management') @section('page_title', 'Permissions Listing') @section('content')
@foreach($groupedPermissions as $groupName => $permissions)
{{ $groupName }} Module
{{ count($permissions) }}
@foreach($permissions as $perm) {{ $perm->name }} @endforeach
@endforeach
All Permissions Table
{!! $dataTable->table(['class' => 'table table-hover table-striped align-middle w-100', 'id' => 'permissions-table']) !!}
@endsection @push('scripts') {!! $dataTable->scripts(attributes: ['type' => 'module']) !!} @endpush