131 lines
5.1 KiB
PHP
Executable File
131 lines
5.1 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
@include('layouts.analytics')
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
<script src="{{asset('assets/js/detect-dark-mode.js')}}"></script>
|
|
|
|
@if(file_exists(base_path("assets/linkstack/images/").findFile('favicon')))
|
|
<link rel="icon" type="image/png" href="{{ asset('assets/linkstack/images/'.findFile('favicon')) }}">
|
|
@else
|
|
<link rel="icon" type="image/svg+xml" href="{{ asset('assets/linkstack/images/logo.svg') }}">
|
|
@endif
|
|
|
|
<title>{{ config('app.name') }}</title>
|
|
|
|
<!-- Fonts -->
|
|
<link rel="stylesheet" href="https://fonts.bunny.net/css2?family=Nunito:wght@400;600;700&display=swap">
|
|
|
|
<!-- Library / Plugin Css Build -->
|
|
<link rel="stylesheet" href="{{asset('assets/css/core/libs.min.css')}}" />
|
|
|
|
<!-- Aos Animation Css -->
|
|
<link rel="stylesheet" href="{{asset('assets/vendor/aos/dist/aos.css')}}" />
|
|
|
|
<!-- Hope Ui Design System Css -->
|
|
<link rel="stylesheet" href="{{asset('assets/css/hope-ui.min.css?v=2.0.0')}}" />
|
|
|
|
<!-- Custom Css -->
|
|
<link rel="stylesheet" href="{{asset('assets/css/custom.min.css?v=2.0.0')}}" />
|
|
|
|
<!-- Dark Css -->
|
|
<link rel="stylesheet" href="{{asset('assets/css/dark.min.css')}}" />
|
|
|
|
<!-- Customizer Css -->
|
|
@if(file_exists(base_path("assets/dashboard-themes/dashboard.css")))
|
|
<link rel="stylesheet" href="{{asset('assets/dashboard-themes/dashboard.css')}}" />
|
|
@else
|
|
<link rel="stylesheet" href="{{asset('assets/css/customizer.min.css')}}" />
|
|
@endif
|
|
|
|
<!-- RTL Css -->
|
|
<link rel="stylesheet" href="{{asset('assets/css/rtl.min.css')}}" />
|
|
|
|
<!-- Scripts -->
|
|
<script src="{{ asset('assets/js/app.js') }}" defer></script>
|
|
|
|
<link rel="stylesheet" href="{{ asset('assets/external-dependencies/bootstrap-icons.css') }}">
|
|
|
|
{{-- <!-- begin dark mode detection -->
|
|
<script src="{{ asset('assets/linkstack/js/js.cookie.min.js') }}"></script>
|
|
<script>
|
|
// code to set the `color_scheme` cookie
|
|
var $color_scheme = Cookies.get("color_scheme");
|
|
function get_color_scheme() {
|
|
return (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches) ? "dark" : "light";
|
|
}
|
|
function update_color_scheme() {
|
|
Cookies.set("color_scheme", get_color_scheme());
|
|
}
|
|
// read & compare cookie `color-scheme`
|
|
if ((typeof $color_scheme === "undefined") || (get_color_scheme() != $color_scheme))
|
|
update_color_scheme();
|
|
// detect changes and change the cookie
|
|
if (window.matchMedia)
|
|
window.matchMedia("(prefers-color-scheme: dark)").addListener( update_color_scheme );
|
|
// reloads page to apply the dark mode cookie
|
|
window.onload = function() {
|
|
if(!window.location.hash && get_color_scheme() == "dark" && (get_color_scheme() != $color_scheme)) {
|
|
window.location = window.location + '#dark';
|
|
window.location.reload();
|
|
}
|
|
}
|
|
</script>
|
|
<?php // loads dark mode CSS if dark mode detected
|
|
$color_scheme = isset($_COOKIE["color_scheme"]) ? $_COOKIE["color_scheme"] : false;
|
|
$color_scheme_override = isset($_COOKIE["color_scheme_override"]) ? $_COOKIE["color_scheme_override"] : false; ?>
|
|
@if ($color_scheme == 'dark' and config('advanced-config.theme') != 'light' and $color_scheme_override != 'light' or $color_scheme_override == 'dark' or config('advanced-config.theme') == 'dark')
|
|
<link rel="stylesheet" href="{{ asset('css/app-dark.css') }}">
|
|
@endif
|
|
<!-- end dark mode detection --> --}}
|
|
</head>
|
|
<body>
|
|
|
|
{{ $slot }}
|
|
|
|
</body>
|
|
|
|
<!-- Library Bundle Script -->
|
|
<script src="{{asset('assets/js/core/libs.min.js')}}"></script>
|
|
|
|
<!-- External Library Bundle Script -->
|
|
<script src="{{asset('assets/js/core/external.min.js')}}"></script>
|
|
|
|
<!-- Widgetchart Script -->
|
|
<script src="{{asset('assets/js/charts/widgetcharts.js')}}"></script>
|
|
|
|
<!-- mapchart Script -->
|
|
<script src="{{asset('assets/js/charts/vectore-chart.js')}}"></script>
|
|
<script src="{{asset('assets/js/charts/dashboard.js')}}" ></script>
|
|
|
|
<!-- fslightbox Script -->
|
|
<script src="{{asset('assets/js/plugins/fslightbox.js')}}"></script>
|
|
|
|
<!-- Settings Script -->
|
|
<script src="{{asset('assets/js/plugins/setting.js')}}"></script>
|
|
|
|
<!-- Slider-tab Script -->
|
|
<script src="{{asset('assets/js/plugins/slider-tabs.js')}}"></script>
|
|
|
|
<!-- Form Wizard Script -->
|
|
<script src="{{asset('assets/js/plugins/form-wizard.js')}}"></script>
|
|
|
|
<!-- AOS Animation Plugin-->
|
|
<script src="{{asset('assets/vendor/aos/dist/aos.js')}}"></script>
|
|
|
|
<!-- App Script -->
|
|
<script src="{{asset('assets/js/hope-ui.js')}}" defer></script>
|
|
|
|
<!-- Flatpickr Script -->
|
|
<script src="{{asset('assets/vendor/flatpickr/dist/flatpickr.min.js')}}"></script>
|
|
<script src="{{asset('assets/js/plugins/flatpickr.js')}}" defer></script>
|
|
|
|
<script src="{{asset('assets/js/plugins/prism.mini.js')}}"></script>
|
|
|
|
</html>
|