Initial commit
This commit is contained in:
92
resources/views/layout/master.blade.php
Normal file
92
resources/views/layout/master.blade.php
Normal file
@ -0,0 +1,92 @@
|
||||
<!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-->
|
||||
|
||||
@yield('styles')
|
||||
</head>
|
||||
<!--end::Head-->
|
||||
|
||||
<!--begin::Body-->
|
||||
<body id="kt_app_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-->
|
||||
<!--end::Javascript-->
|
||||
@yield('scripts')
|
||||
@stack('customscript')
|
||||
|
||||
<script>
|
||||
@if(Session::has('success'))
|
||||
toastr.success("{{ Session::get('success') }}");
|
||||
@endif
|
||||
|
||||
@if(Session::has('error'))
|
||||
toastr.error("{{ Session::get('error') }}");
|
||||
@endif
|
||||
|
||||
@if($errors->any())
|
||||
@foreach($errors->all() as $error)
|
||||
toastr.error("{{ $error }}");
|
||||
@endforeach
|
||||
@endif
|
||||
</script>
|
||||
</body>
|
||||
<!--end::Body-->
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user