@php $secuGroups = $acl->filter(fn($e) => str_starts_with($e->principal, 'SECU-'))->unique(fn($e) => $e->principal . '|' . $e->droits . '|' . $e->est_herite); $directUsers = $acl->filter(fn($e) => !str_starts_with($e->principal, 'SECU-') && !$e->est_herite)->unique(fn($e) => $e->principal . '|' . $e->droits); $inheritedAll = $acl->filter(fn($e) => $e->est_herite && !str_starts_with($e->principal, 'SECU-')); @endphp @if($secuGroups->isNotEmpty() || $directUsers->isNotEmpty() || $inheritedAll->isNotEmpty()) @if(!empty($filtre))
@if(isset($totalFiltres)) {{ $totalFiltres }} @endif
@elseif(isset($totalFiltres))

{{ $totalFiltres }} entrée(s) ACL

@endif
@if($secuGroups->isNotEmpty())
Groupes SECU-
@foreach($secuGroups as $entry) @include('permissions._acl_entry', ['entry' => $entry, 'filtre' => $filtre ?? false]) @endforeach @endif @if($directUsers->isNotEmpty())
Utilisateurs directs
@foreach($directUsers as $entry) @include('permissions._acl_entry', ['entry' => $entry, 'filtre' => $filtre ?? false]) @endforeach @endif @if($inheritedAll->isNotEmpty())
Hérités (autres)
@foreach($inheritedAll as $entry) @include('permissions._acl_entry', ['entry' => $entry, 'filtre' => $filtre ?? false]) @endforeach @endif
Groupe Utilisateur Lecture Modification Contrôle total Lecture & exécution
@else

Aucune entrée ACL sur ce dossier.

@endif