clara/resources/views/layout/master.blade.php

111 lines
3.2 KiB
PHP
Raw Normal View History

2023-04-11 09:21:20 +00:00
<!DOCTYPE html>
2023-09-26 09:39:39 +00:00
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" {!! printHtmlAttributes('html') !!}>
2023-04-11 09:21:20 +00:00
<!--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-->
2023-04-12 01:30:25 +00:00
@yield('styles')
2023-09-26 09:39:39 +00:00
2023-04-11 09:21:20 +00:00
</head>
<!--end::Head-->
<!--begin::Body-->
2023-09-26 09:39:39 +00:00
<body {!! printHtmlClasses('body') !!} {!! printHtmlAttributes('body') !!}>
2023-04-11 09:21:20 +00:00
@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-->
2023-09-26 09:39:39 +00:00
@stack('scripts')
2023-04-12 01:30:25 +00:00
@yield('scripts')
@stack('customscript')
2023-04-12 10:06:33 +00:00
2023-09-26 09:39:39 +00:00
<!--end::Javascript-->
2023-04-12 10:06:33 +00:00
<script>
2023-10-05 16:02:43 +00:00
document.addEventListener('livewire:initialized', () => {
2023-09-26 09:39:39 +00:00
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'
}
});
});
});
2023-04-12 10:06:33 +00:00
</script>
2023-09-26 09:39:39 +00:00
@livewireScripts
2023-04-11 09:21:20 +00:00
</body>
<!--end::Body-->
</html>