@extends('dashboard.layouts.app') @section('title', 'Détails du Rôle - ' . $role->nom . ' - UAC eservices') @section('page-title', 'Détails du Rôle') @section('breadcrumb') @endsection {{-- @section('page-actions') @endsection --}} @section('content')
@if($role->nom !== 'Administrateur') Modifier le rôle @endif

Informations du Rôle

{{ $role->nom }}

{{ $role->users->count() }}

@if($role->description)

{{ $role->description }}

@endif

{{ $role->created_at->format('d/m/Y H:i') }}

@if($role->updated_at != $role->created_at)

{{ $role->updated_at->format('d/m/Y H:i') }}

@endif @if($role->nom === 'Administrateur')
Rôle système : Ce rôle est protégé et ne peut pas être modifié ou supprimé.
@endif
Actions
Retour à la liste @if($role->nom !== 'Administrateur') Modifier @if($role->users->isEmpty())
@csrf @method('DELETE')
@else @endif @endif
@if($role->users->isNotEmpty())
Utilisateurs avec ce rôle ({{ $role->users->count() }})
@foreach($role->users as $user) @endforeach
Nom Email Date d'inscription Actions
{{ $user->name }} {{ $user->email }} {{ $user->created_at->format('d/m/Y') }}
@endif @endsection