Files
3dealer/resources/views/layouts/app.blade.php
T

45 lines
1.4 KiB
PHP

<!DOCTYPE html>
<html lang="{{ $currentLocale ?? app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
{{-- Favicons --}}
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<title>@yield('title', config('app.name'))</title>
<meta name="description" content="@yield('description', '')">
{{-- Reciprocal hreflang: self-reference + the alternate locale + x-default --}}
@isset($currentLocale)
<link rel="alternate" hreflang="{{ $currentLocale }}" href="{{ url()->current() }}" />
<link rel="alternate" hreflang="{{ $altLocale }}" href="{{ $altLocaleUrl }}" />
<link rel="alternate" hreflang="x-default" href="{{ url('/') }}" />
@endisset
@stack('seo')
@vite(['resources/css/app.css', 'resources/js/app.js'])
@stack('head')
</head>
<body class="min-h-screen antialiased">
<x-header />
<main id="main-content" class="min-h-[calc(100vh-12rem)] sm:min-h-[calc(100vh-8rem)]">
@yield('content')
</main>
<x-footer />
<x-back-to-top />
@stack('scripts')
</body>
</html>