60 lines
2.5 KiB
PHP
60 lines
2.5 KiB
PHP
<!doctype html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<title inertia>{{ setting('app_name') }}</title>
|
|
|
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ url('assets/img/icons/apple-touch-icon-144x144.png') }}" />
|
|
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ url('assets/img/icons/apple-touch-icon-152x152.png') }}" />
|
|
<link rel="icon" type="image/png" href="{{ url('assets/img/icons/favicon-32x32.png') }}" sizes="32x32" />
|
|
<link rel="icon" type="image/png" href="{{ url('assets/img/icons/favicon-16x16.png') }}" sizes="16x16" />
|
|
<meta name="application-name" content="{{ setting('app_name') }}"/>
|
|
<meta name="msapplication-TileColor" content="#FFFFFF" />
|
|
<meta name="msapplication-TileImage" content="{{ url('assets/img/icons/mstile-144x144.png') }}" />
|
|
|
|
{{-- Icon font. Kept as a static asset so plugin authors can keep using
|
|
Item::icon('fas fa-server') without pulling Font Awesome through npm. --}}
|
|
<link media="all" type="text/css" rel="stylesheet" href="{{ url('assets/css/fontawesome-all.min.css') }}">
|
|
|
|
{{--
|
|
Registration queue for plugin bundles. Installed before anything else so
|
|
a plugin script may call Vanguard.plugin() whether it loads before or
|
|
after the app bundle; resources/js/vanguard.ts drains the queue on boot.
|
|
--}}
|
|
<script>
|
|
window.Vanguard = window.Vanguard || { _q: [] };
|
|
window.Vanguard.plugin = window.Vanguard.plugin || function () {
|
|
window.Vanguard._q.push(arguments);
|
|
};
|
|
</script>
|
|
|
|
@foreach (\Vanguard\Plugins\Vanguard::assets() as $asset)
|
|
@if (! empty($asset['css']))
|
|
<link media="all" type="text/css" rel="stylesheet" href="{{ $asset['css'] }}">
|
|
@endif
|
|
@endforeach
|
|
|
|
{{--
|
|
Ziggy's route list, emitted once per full page load as window.Ziggy.
|
|
The ZiggyVue plugin reads it from there, so the ~10KB payload does not
|
|
have to ride along with every Inertia navigation as a shared prop.
|
|
--}}
|
|
@routes
|
|
|
|
@vite('resources/js/app.ts')
|
|
@inertiaHead
|
|
</head>
|
|
<body>
|
|
@inertia
|
|
|
|
@foreach (\Vanguard\Plugins\Vanguard::assets() as $asset)
|
|
@if (! empty($asset['js']))
|
|
<script type="module" src="{{ $asset['js'] }}"></script>
|
|
@endif
|
|
@endforeach
|
|
</body>
|
|
</html>
|