60 lines
2.4 KiB
PHP
60 lines
2.4 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" @if(in_array(app()->getLocale(), config('app.rtl_locales'))) dir="rtl" @endif>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
<title>
|
|
{{ config('app.name', 'Paymenter') }}
|
|
@isset($title)
|
|
- {{ $title }}
|
|
@endisset
|
|
</title>
|
|
@vite(['themes/' . config('settings.theme') . '/js/app.js', 'themes/' . config('settings.theme') . '/css/app.css'], config('settings.theme'))
|
|
@include('layouts.colors')
|
|
|
|
@if (config('settings.logo'))
|
|
<link rel="icon" href="{{ Storage::url(config('settings.logo')) }}" type="image/png">
|
|
@endif
|
|
@isset($title)
|
|
<meta content="{{ isset($title) ? config('app.name', 'Paymenter') . ' - ' . $title : config('app.name', 'Paymenter') }}" property="og:title">
|
|
<meta content="{{ isset($title) ? config('app.name', 'Paymenter') . ' - ' . $title : config('app.name', 'Paymenter') }}" name="title">
|
|
@endisset
|
|
@isset($description)
|
|
<meta content="{{ $description }}" property="og:description">
|
|
<meta content="{{ $description }}" name="description">
|
|
@endisset
|
|
@isset($image)
|
|
<meta content="{{ $image }}" property="og:image">
|
|
<meta content="{{ $image }}" name="image">
|
|
@endisset
|
|
|
|
<meta name="theme-color" content="{{ theme('primary') }}">
|
|
|
|
{!! hook('head') !!}
|
|
</head>
|
|
|
|
<body class="w-full bg-background text-base min-h-screen flex flex-col antialiased" x-cloak x-data="{darkMode: $persist(window.matchMedia('(prefers-color-scheme: dark)').matches)}" :class="{'dark': darkMode}">
|
|
{!! hook('body') !!}
|
|
<x-navigation />
|
|
<div class="w-full flex flex-grow">
|
|
@if (isset($sidebar) && $sidebar)
|
|
<x-navigation.sidebar title="$title" />
|
|
@endif
|
|
<div class="{{ (isset($sidebar) && $sidebar) ? 'md:ml-64 rtl:ml-0 rtl:md:mr-64' : '' }} flex flex-col flex-grow overflow-auto">
|
|
<main class="container mt-24 mx-auto px-4 sm:px-6 md:px-16 lg:px-16">
|
|
{{ $slot }}
|
|
</main>
|
|
<x-notification />
|
|
<div class="py-8 px-4 md:px-16 lg:px-16">
|
|
<x-navigation.footer />
|
|
</div>
|
|
</div>
|
|
<x-impersonating />
|
|
</div>
|
|
{!! hook('footer') !!}
|
|
</body>
|
|
|
|
</html>
|