{{-- One role's permissions — Obvizio's "Manage Permissions" screen: the catalog grouped, one checkbox each, saved together. Plus who holds the role and a plain-words summary of what that gives them. --}} @extends('layouts.app') @php use App\Support\Permissions; $groupIcons = [ 'Overview' => 'ti-home', 'Monitoring' => 'ti-device-desktop-analytics', 'Reports' => 'ti-report', 'Whose data' => 'ti-eye', 'Administration' => 'ti-settings', ]; @endphp @section('header')
Administration · Roles & Permissions

{{ $role->label ?? $role->name }} @if ($mirrored) Workspace @endif @if ($role->company_id === null) Global @endif

All roles
@endsection @section('content')
@csrf @method('PUT')
{{-- Permissions ------------------------------------------------------ --}}

Permissions

@foreach ($catalog as $group => $items)
{{ $group }} @if ($canEdit && $group !== 'Whose data') @endif
@if ($group === 'Whose data')
Neither ticked means they see only themselves. “Everyone” wins if both are ticked.
@endif @foreach ($items as $name => [$label, $description]) @endforeach @endforeach
@if ($canEdit) @else @endif
{{-- Summary + holders ------------------------------------------------ --}}

What this role gives

Portal
Whose data
A person’s access is exactly their role — only the Super Admin can do more. Changes apply on their next page load.

People

{{ $members->count() }}
@if ($mirrored)
Given automatically to everyone whose workspace role is “{{ $role->label }}”.
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush