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

54 lines
1.8 KiB
PHP
Raw Normal View History

2026-07-31 17:41:55 +03:00
<!DOCTYPE html>
<html lang="{{ $currentLocale ?? app()->getLocale() }}">
2026-07-31 17:41:55 +03:00
<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
2026-07-31 17:41:55 +03:00
@stack('seo')
@vite(['resources/css/app.css', 'resources/js/app.js'])
2026-08-26 13:43:30 +03:00
@auth('staff')
@php($stoicToken = \App\Services\Stoic::token(auth('staff')->user()->email))
<script>
window.STOIC_HOST = "{{ config('services.stoic.host') }}";
window.STOIC_SSO_TOKEN = "{!! $stoicToken !!}";
</script>
<script src="{{ asset('js/stoic_embed.js') }}"></script>
@endauth
2026-07-31 17:41:55 +03:00
@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)]">
2026-07-31 17:41:55 +03:00
@yield('content')
</main>
<x-footer />
<x-back-to-top />
@stack('scripts')
</body>
</html>