file-management-system/resources/views/layout/master.blade.php
2023-11-03 16:12:15 +07:00

107 lines
3.1 KiB
PHP

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" {!! printHtmlAttributes('html') !!}>
<!--begin::Head-->
<head>
<base href=""/>
<title>{{ config('app.name', 'Laravel') }}</title>
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta charset="utf-8"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:type" content="article"/>
<meta property="og:title" content=""/>
<link rel="canonical" href=""/>
{!! includeFavicon() !!}
<!--begin::Fonts-->
{!! includeFonts() !!}
<!--end::Fonts-->
<!--begin::Global Stylesheets Bundle(used by all pages)-->
@foreach(getGlobalAssets('css') as $path)
{!! sprintf('<link rel="stylesheet" href="%s">', asset($path)) !!}
@endforeach
<!--end::Global Stylesheets Bundle-->
<!--begin::Vendor Stylesheets(used by this page)-->
@foreach(getVendors('css') as $path)
{!! sprintf('<link rel="stylesheet" href="%s">', asset($path)) !!}
@endforeach
<!--end::Vendor Stylesheets-->
<!--begin::Custom Stylesheets(optional)-->
@foreach(getCustomCss() as $path)
{!! sprintf('<link rel="stylesheet" href="%s">', asset($path)) !!}
@endforeach
<!--end::Custom Stylesheets-->
@livewireStyles
</head>
<!--end::Head-->
<!--begin::Body-->
<body {!! printHtmlClasses('body') !!} {!! printHtmlAttributes('body') !!}>
@include('partials/theme-mode/_init')
@yield('content')
<!--begin::Javascript-->
<!--begin::Global Javascript Bundle(mandatory for all pages)-->
@foreach(getGlobalAssets() as $path)
{!! sprintf('<script src="%s"></script>', asset($path)) !!}
@endforeach
<!--end::Global Javascript Bundle-->
<!--begin::Vendors Javascript(used by this page)-->
@foreach(getVendors('js') as $path)
{!! sprintf('<script src="%s"></script>', asset($path)) !!}
@endforeach
<!--end::Vendors Javascript-->
<!--begin::Custom Javascript(optional)-->
@foreach(getCustomJs() as $path)
{!! sprintf('<script src="%s"></script>', asset($path)) !!}
@endforeach
<!--end::Custom Javascript-->
@stack('scripts')
<!--end::Javascript-->
<script>
document.addEventListener('livewire:load', () => {
Livewire.on('success', (message) => {
toastr.success(message);
});
Livewire.on('error', (message) => {
toastr.error(message);
});
Livewire.on('swal', (message, icon, confirmButtonText) => {
if (typeof icon === 'undefined') {
icon = 'success';
}
if (typeof confirmButtonText === 'undefined') {
confirmButtonText = 'Ok, got it!';
}
Swal.fire({
text: message,
icon: icon,
buttonsStyling: false,
confirmButtonText: confirmButtonText,
customClass: {
confirmButton: 'btn btn-primary'
}
});
});
});
</script>
@livewireScripts
</body>
<!--end::Body-->
</html>