{{-- Roles & Permissions — the company's roles, who holds each and what it opens. Obvizio's /roles screen over Worklance's permission catalog. --}} @extends('layouts.app') @php use App\Support\Permissions; $pages = Permissions::pageNames(); @endphp @section('header')
| Role | People | Screens | Whose data | Permissions | |
|---|---|---|---|---|---|
{{ $role->label ?? $role->name }}
@if ($isWs) Workspace @endif
@if ($role->company_id === null) Global @endif
{{ $role->name }} |
{{ $role->users_count }} |
@if ($screens)
@foreach ($screens as $p)
{{ Permissions::label($p) }}
@endforeach
@else
None — desktop only
@endif
|
{{ $screens ? $scope : '—' }} | {{ count($held) }} / {{ $total }} |
Permissions
@if ($role->company_id !== null || auth()->user()->isSuperAdmin())
|
| No roles yet — create one, or Sync Workspace Users to bring the workspace’s roles across. | |||||