Primer commit proyecto Laravel
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
@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>
|
||||
Reference in New Issue
Block a user