@extends('app-admin.layout') @section('title','Access Matrix — Wavora Admin') @section('page-title','Access Matrix') @section('page-sub','Role-based access control per group') @section('content') @if(session('success'))
check_circle {{ session('success') }}
@endif {{-- Group Tabs --}}
@foreach($groups as $group) {{ $group->name }} @endforeach
@if($selectedGroup)
@csrf
shield_lock Permissions for: {{ $selectedGroup->name }}
Toggle actions to allow or deny access for this group
@foreach($allActions as $act) @endforeach @foreach($matrix as $row) @foreach($allActions as $act) @php $action = $row['actions'][$act['code']] ?? null; @endphp @endforeach @endforeach
Module{{ $act['name'] }}
{{ $row['module_name'] }}
{{ $row['module_code'] }}
@if($action) @else @endif
Cancel
@else
group

No groups found. Seed the database first.

@endif @endsection