40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
<title>{{ config('app.name', 'Laravel') }}</title>
|
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
|
</head>
|
|
<body id="app">
|
|
@include('layouts.navigation')
|
|
|
|
<main>
|
|
@isset($header)
|
|
<header>
|
|
{{ $header }}
|
|
</header>
|
|
@endisset
|
|
|
|
<article {{ $attributes }}>
|
|
{{ $article ?? $slot }}
|
|
</article>
|
|
</main>
|
|
|
|
<aside>
|
|
@if (session('toast'))
|
|
<div
|
|
x-data="{ open: true }"
|
|
x-show="open"
|
|
x-init="setTimeout(() => open = false, 4000)"
|
|
class="fixed top-4 right-4 bg-green-600 text-white px-4 py-2 rounded-lg shadow-lg"
|
|
x-transition.opacity.duration.300ms
|
|
>
|
|
{{ session('toast') }}
|
|
</div>
|
|
@endif
|
|
</aside>
|
|
</body>
|
|
</html>
|