@extends('layouts.app') @section('title', 'Gestión de Roles') @section('content')
| Rol | Descripción | Guard | Usuarios | Permisos | Estado | Acciones |
|---|---|---|---|---|---|---|
|
{{ $role->name }}
ID: {{ $role->id }}
|
{{ $role->description ?? 'Sin descripción' }}
|
{{ $role->guard_name }} | {{ $role->users_count ?? 0 }} |
@foreach($role->permissions->take(3) as $permission)
{{ $permission->name }}
@endforeach
@if($role->permissions->count() > 3)
+{{ $role->permissions->count() - 3 }} más
@endif
|
{{ $role->is_active ? 'Activo' : 'Inactivo' }} |
@can('role-edit')
@endcan
@can('role-permissions')
@endcan
@can('role-delete')
@if(!in_array($role->name, ['super-admin', 'admin']))
@endif
@endcan
|
| No hay roles disponibles | ||||||