@extends('admin.layout') @section('title', 'Gestione Utenti') @section('page_title', 'Gestione Utenti') @section('breadcrumbs') @endsection @section('content')

Utenti Registrati

Nuovo Utente
@foreach($utenti as $utente) @endforeach
Nome Email Stato Permessi Creato Azioni
{{ $utente->name }} @if($utente->isSuperAdmin()) Admin @endif {{ $utente->email }} @switch($utente->status) @case('active') Attivo @break @case('suspended') Sospeso @break @case('pending') In attesa @break @endswitch @php $summary = $utente->getPermissionsSummary(); @endphp @foreach($summary as $module => $level) @if($level !== 'Nessuno') {{ ucfirst($module) }}: {{ $level }}
@endif @endforeach
{{ $utente->created_at->format('d/m/Y') }} @if($utente->id !== auth()->id())
@csrf @method('DELETE')
@endif
{{ $utenti->links() }}
@endsection