|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth"> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 7 | + <!-- CSRF Token --> |
| 8 | + <meta name="csrf-token" content="{{ csrf_token() }}"> |
| 9 | + |
| 10 | + <title> |
| 11 | + {{ isset($title) ? $title . ' | ' : '' }} |
| 12 | + {{ config('app.name') }} |
| 13 | + </title> |
| 14 | + <link rel="canonical" href="{{ $canonical ?? Request::url() }}" /> |
| 15 | + |
| 16 | + @include('layouts._og') |
| 17 | + <x-seo::meta /> |
| 18 | + |
| 19 | + <!-- Styles --> |
| 20 | + <link href="https://fonts.cdnfonts.com/css/operator-mono" rel="stylesheet"> |
| 21 | + <link rel="stylesheet" href="https://rsms.me/inter/inter.css"> |
| 22 | + <link href="{{ mix('css/app.css') }}" rel="stylesheet"> |
| 23 | + @livewireStyles |
| 24 | + |
| 25 | + <script> |
| 26 | + window.csrfToken = {!! json_encode(['csrfToken' => csrf_token()]) !!}; |
| 27 | + window.laravel = { |
| 28 | + ...(window.laravel || {}), |
| 29 | + isModerator: {{ auth()->check() && auth()->user()->hasAnyRole('admin', 'moderator') ? 'true' : 'false' }}, |
| 30 | + user: {{ auth()->check() ? auth()->id() : 'null' }}, |
| 31 | + currentUser: {!! auth()->check() ? json_encode(auth()->user()->profile()) : 'null' !!} |
| 32 | + } |
| 33 | + </script> |
| 34 | + |
| 35 | + <!-- Scripts --> |
| 36 | + <wireui:scripts /> |
| 37 | + @livewireScripts |
| 38 | + <script src="{{ mix('js/app.js') }}" defer></script> |
| 39 | + |
| 40 | + @include('layouts._favicons') |
| 41 | +</head> |
| 42 | +<body class="antialiased font-sans bg-white dark:bg-gray-900"> |
| 43 | + |
| 44 | + <div class="relative overflow-hidden min-h-full"> |
| 45 | + @yield('content') |
| 46 | + </div> |
| 47 | + |
| 48 | + <x-notifications z-index="z-50" /> |
| 49 | + |
| 50 | + @livewire('livewire-ui-modal') |
| 51 | + @stack('scripts') |
| 52 | +</body> |
| 53 | +</html> |
0 commit comments