50 lines
2.1 KiB
PHP
Executable File
50 lines
2.1 KiB
PHP
Executable File
{{-- Systems Helpdesk site icons --}}
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('favicon-32x32.png') }}">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('favicon-16x16.png') }}">
|
|
<link rel="icon" type="image/png" sizes="96x96" href="{{ asset('favicon-96x96.png') }}">
|
|
<link rel="shortcut icon" href="{{ asset('favicon.ico') }}">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('apple-touch-icon.png') }}">
|
|
<link rel="manifest" href="{{ asset('site.webmanifest') }}">
|
|
<meta name="theme-color" content="#0b1220">
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>{{ filled($title ?? null) ? $title.' - '.config('app.name', 'Laravel') : config('app.name', 'Laravel') }}</title>
|
|
@fonts
|
|
@php
|
|
$backendCssEntry = is_file(resource_path('themes/backend/assets/css/app.css'))
|
|
? 'resources/themes/backend/assets/css/app.css'
|
|
: 'resources/themes/backend/assets/css/helpdesk.css';
|
|
|
|
$viteAssets = [
|
|
$backendCssEntry,
|
|
'resources/themes/backend/assets/js/passkeys.js',
|
|
'resources/themes/backend/assets/js/layout.js',
|
|
];
|
|
|
|
$moduleStatuses = [];
|
|
$moduleStatusFile = base_path('modules_statuses.json');
|
|
|
|
if (is_file($moduleStatusFile)) {
|
|
$moduleStatuses = json_decode((string) file_get_contents($moduleStatusFile), true) ?: [];
|
|
}
|
|
|
|
foreach (glob(base_path('Modules/*'), GLOB_ONLYDIR) ?: [] as $moduleDirectory) {
|
|
$moduleName = basename($moduleDirectory);
|
|
|
|
if (array_key_exists($moduleName, $moduleStatuses) && ! $moduleStatuses[$moduleName]) {
|
|
continue;
|
|
}
|
|
|
|
foreach (['Resources/assets/css/app.css', 'Resources/assets/js/app.js'] as $entry) {
|
|
$absoluteEntry = $moduleDirectory.DIRECTORY_SEPARATOR.str_replace('/', DIRECTORY_SEPARATOR, $entry);
|
|
|
|
if (is_file($absoluteEntry)) {
|
|
$viteAssets[] = str_replace('\\', '/', substr($absoluteEntry, strlen(base_path()) + 1));
|
|
}
|
|
}
|
|
}
|
|
|
|
$viteAssets = array_values(array_unique($viteAssets));
|
|
@endphp
|
|
@vite($viteAssets)
|
|
@fluxAppearance |