|
1 | 1 | <!doctype html>
|
2 |
| -<html lang="{{ app()->getLocale() }}"> |
| 2 | +<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> |
3 | 3 | <head>
|
4 | 4 | <meta charset="utf-8">
|
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 | + <meta name="csrf-token" content="{{ csrf_token() }}"> |
6 | 7 |
|
7 | 8 | @if (class_exists(RalphJSmit\Laravel\SEO\SEOManager::class))
|
8 |
| - @isset($page) |
9 |
| - {!! seo()->for($page) !!} |
10 |
| - @endisset |
11 |
| - @isset($post) |
12 |
| - {!! seo()->for($post) !!} |
13 |
| - @endisset |
14 |
| - @if(empty($page) && empty($post)) |
15 |
| - {!! seo() !!} |
16 |
| - @endif |
| 9 | + {!! seo($page ?? $seoPage ?? $seoPost ?? null) !!} |
17 | 10 | @endif
|
18 | 11 |
|
19 | 12 | @vite(['resources/css/app.css', 'resources/js/app.js'])
|
|
35 | 28 | @endif
|
36 | 29 | </head>
|
37 | 30 | <body>
|
38 |
| - @if (class_exists(\Fuelviews\Navigation\Navigation::class) && config('sabhero-wrapper.navigation_enabled')) |
39 |
| - @component('navigation::components.navigation') |
40 |
| - @endcomponent |
41 |
| - @endif |
42 |
| - |
43 |
| - {{ $slot }} |
| 31 | +@if (class_exists(\Fuelviews\Navigation\Navigation::class) && config('sabhero-wrapper.navigation_enabled')) |
| 32 | + @component('navigation::components.navigation') |
| 33 | + @endcomponent |
| 34 | +@endif |
44 | 35 |
|
45 |
| - @if (class_exists(\Fuelviews\Navigation\View\Components\Footer\Footer::class) && config('sabhero-wrapper.footer_enabled')) |
46 |
| - @component('navigation::components.footer.footer') |
47 |
| - @endcomponent |
48 |
| - @endif |
| 36 | +{{ $slot }} |
49 | 37 |
|
50 |
| - @if (class_exists(\Fuelviews\Forms\Forms::class) && config('sabhero-wrapper.forms_modal_enabled')) |
51 |
| - @livewire('forms-modal') |
52 |
| - @endif |
| 38 | +@if (class_exists(\Fuelviews\Navigation\View\Components\Footer\Footer::class) && config('sabhero-wrapper.footer_enabled')) |
| 39 | + @component('navigation::components.footer.footer') |
| 40 | + @endcomponent |
| 41 | +@endif |
53 | 42 |
|
54 |
| - @if (class_exists(\Spatie\GoogleTagManager\GoogleTagManager::class) && config('sabhero-wrapper.gtm_enabled')) |
55 |
| - @include('googletagmanager::body') |
56 |
| - @endif |
| 43 | +@if (class_exists(\Fuelviews\Forms\Forms::class) && config('sabhero-wrapper.forms_modal_enabled')) |
| 44 | + @livewire('forms-modal') |
| 45 | +@endif |
57 | 46 |
|
58 |
| - @if (class_exists(\Livewire\Livewire::class) && config('sabhero-wrapper.livewire_enabled')) |
59 |
| - @livewireScripts |
60 |
| - @endif |
| 47 | +@if (class_exists(\Spatie\GoogleTagManager\GoogleTagManager::class) && config('sabhero-wrapper.gtm_enabled')) |
| 48 | + @include('googletagmanager::body') |
| 49 | +@endif |
61 | 50 |
|
| 51 | +@if (class_exists(\Livewire\Livewire::class) && config('sabhero-wrapper.livewire_enabled')) |
| 52 | + @livewireScripts |
| 53 | +@endif |
62 | 54 | </body>
|
63 | 55 | </html>
|
0 commit comments