@yield('page-title', 'Dashboard')

@php $toastType = session('success') ? 'success' : (session('error') ? 'danger' : ($errors->any() ? 'danger' : null)); $toastMsg = session('success') ?? session('error') ?? ($errors->any() ? ('Se encontraron ' . $errors->count() . ' errores. Revisa el formulario.') : null); @endphp @if($toastType && $toastMsg)
@endif @yield('content')