@include('include.preloader') @include('include.header')
Gestión de los roles del sistema
@if (session('success')) @endif @if ($errors->any())
No se pudo guardar:
    @foreach ($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@forelse ($roles as $rol) @empty @endforelse
# Nombre Descripción Acciones
{{ $rol->id }} {{ $rol->nombre }} {{ $rol->descripcion }}
No hay roles registrados.

@include('include.footer') {{-- Reabrir modal de "Nuevo rol" si hubo errores al crear --}} @if ($errors->any() && old('_from') === 'create') @endif {{-- Script SIEMPRE activo para abrir modal de edición --}}