@extends('layouts.master') @section('css') @include('roles._style') @endsection @section('title') {{ __('roles.show_role') }} @stop @section('page-header') @endsection @section('content') @php $isAdmin = $role->name === 'Admin'; @endphp
@if($isAdmin)
{{ __('roles.admin_note') }}
@endif
@foreach ($groups as $g) @php $on = collect($g['items'])->filter(fn ($p) => $isAdmin || in_array($p['id'], $rolePermissions))->count(); @endphp
{{ $g['label'] }}
{{ $on }} / {{ count($g['items']) }}
@foreach ($g['items'] as $p) @php $has = $isAdmin || in_array($p['id'], $rolePermissions); @endphp
{{ $p['label'] }}

@endforeach
@endforeach
@endsection