63 lines
1.2 KiB
PHP
63 lines
1.2 KiB
PHP
@include('layouts._partials.error')
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
@include('layouts._partials.head')
|
|
|
|
{{-- Livewire styles --}}
|
|
@livewireStyles
|
|
</head>
|
|
|
|
<body id="page-top">
|
|
<div id="wrapper">
|
|
|
|
@include('layouts._partials.menu')
|
|
|
|
<div id="content-wrapper" class="d-flex flex-column">
|
|
<div id="content">
|
|
@include('layouts._partials.header')
|
|
@yield('content')
|
|
</div>
|
|
|
|
@include('layouts._partials.footer')
|
|
</div>
|
|
</div>
|
|
|
|
{{-- JS base --}}
|
|
@include('layouts._partials.scripts')
|
|
|
|
{{-- Livewire --}}
|
|
@livewireScripts
|
|
|
|
{{-- scripts por vista --}}
|
|
@yield('scripts')
|
|
|
|
|
|
<script>
|
|
window.addEventListener('swal', event => {
|
|
|
|
console.log('Evento swal recibido:', event.detail);
|
|
|
|
if (!event.detail) return;
|
|
|
|
Swal.fire({
|
|
icon: event.detail.icon ?? 'info',
|
|
title: event.detail.title ?? 'Aviso',
|
|
text: event.detail.text ?? '',
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<script>
|
|
window.addEventListener('close-modal', () => {
|
|
const modal = bootstrap.Modal.getInstance(
|
|
document.getElementById('logoutSessionsModal')
|
|
);
|
|
modal?.hide();
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|