ldc-legaulois/resources/views/bo/layout.blade.php

36 lines
1.2 KiB
PHP

<!doctype html>
<html dir="ltr" lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
@include('bo.layouts.head')
</head>
@use('\App\Enums\Theme\BootstrapThemeEnum', 'BootstrapThemeEnum')
<body data-bs-theme="{{ (BootstrapThemeEnum::make(intval(cache()->get('theme'))) ?? BootstrapThemeEnum::light)->name() }}">
<!-- Navigation -->
@include('bo.layouts.header')
<main
class="@auth('backend') container-fluid @else container d-flex flex-column align-items-center justify-content-center pb-5 @endauth @yield('bg-color')"
id="main-container">
<div class="row justify-content-center @guest w-100 mx-auto @endguest">
@include('bo.layouts.sidemenu')
<div class="@auth('backend') col-12 col-lg-8 col-xl-9 col-xxxl-10 ms-sm-auto p-3 py-2 py-md-3 @else col px-md-4 pb-5 @endauth">
@auth('backend')
@include('modules.flash-messages')
@endauth
@yield('content')
</div>
</div>
</main>
<!-- Footer -->
@include('bo.layouts.footer')
<!-- Other -->
@include('modules.script-routes')
@vite(['resources/ts/bo/bo.ts'])
@stack('scripts')
</body>
</html>