openstamanager/resources/views/app.blade.php

64 lines
2.7 KiB
PHP

<!DOCTYPE html>
<html lang="{{app()->getLocale()}}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
{{-- <meta name="csrf-token" content="{{csrf_token()}}">--}}
<title>@lang('OpenSTAManager')</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Kantumruy+Pro:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;700&display=swap"
rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="{{Vite::image('favicon/apple-touch-icon.png')}}">
<link rel="icon" type="image/png" sizes="32x32" href="{{Vite::image('favicon/favicon-32x32.png')}}">
<link rel="icon" type="image/png" sizes="16x16" href="{{Vite::image('favicon/favicon-16x16.png')}}">
<link rel="mask-icon" href="{{Vite::image('favicon/safari-pinned-tab.svg')}}" color="#3f3f3f">
<link rel="shortcut icon" href="{{Vite::image('favicon/favicon.ico')}}">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="{{Vite::image('favicon/browserconfig.xml')}}">
<meta name="theme-color" content="#3f3f3f">
<meta name="description" content="Your app description">
</head>
<body>
@php
/** @var $modules */
assert($modules instanceof Illuminate\Support\Collection);
@endphp
@inertia
<script>
app = @js([
'locale' => app()->getLocale(),
'modules' => $modules,
'translations' => cache()->rememberForever(
'translations',
static fn () => \App\Http\Controllers\Controller::getTranslations()->toArray()
),
'user' => auth()->user(),
'VERSION' => trim(file_get_contents(base_path('VERSION'))),
'REVISION' => trim(file_get_contents(base_path('REVISION'))),
'settings' => [
'date_format' => settings('date_format_long'),
'date_format_short' => settings('date_format_short'),
'time_format' => settings('time_format'),
]
]);
{{--{--}}
{{-- events: {},--}}
{{-- locale: '{{app()->getLocale()}}',--}}
{{-- modules: @js($modules->pluck('modules')->collapse()->all()),--}}
{{-- theme: @js(session('high-contrast') ? 'high-contrast' : 'light'),--}}
{{-- translations: @js(cache()->rememberForever('translations', static fn () => Controller::getTranslations()->toArray())),--}}
{{-- user: @js(auth()->user()),--}}
{{-- VERSION: @js(trim(file_get_contents(base_path('VERSION')))),--}}
{{-- REVISION: @js(trim(file_get_contents(base_path('REVISION'))))--}}
{{--};--}}
</script>
@routes
@vite('resources/ts/app.ts')
</body>
</html>