51 lines
1.9 KiB
PHP
51 lines
1.9 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ App::getLocale() }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="robots" content="noindex, nofollow">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
<title>{{ $title }} | {{ config('app.name') }}</title>
|
|
<link rel="stylesheet" href="/assets/vendor/boilerplate/boilerplate.min.css">
|
|
@stack('css')
|
|
</head>
|
|
<body class="sidebar-mini skin-{{ config('boilerplate.app.skin', 'blue') }}">
|
|
<div class="wrapper">
|
|
@include('layout.header')
|
|
@include('boilerplate::layout.mainsidebar')
|
|
<div class="content-wrapper">
|
|
<section class="content-header">
|
|
@include('layout.contentheader')
|
|
</section>
|
|
<section class="content">
|
|
@yield('content')
|
|
</section>
|
|
</div>
|
|
@include('layout.footer')
|
|
</div>
|
|
<script src="{{ mix('/boilerplate.min.js', '/assets/vendor/boilerplate') }}"></script>
|
|
<script>
|
|
$(function() {
|
|
$.ajaxSetup({headers:{'X-CSRF-TOKEN':'{{ csrf_token() }}'}});
|
|
bootbox.setLocale("{{ App::getLocale() }}");
|
|
@if(Session::has('growl'))
|
|
@if(is_array(Session::get('growl')))
|
|
growl("{!! Session::get('growl')[0] !!}", "{{ Session::get('growl')[1] }}");
|
|
@else
|
|
growl("{{Session::get('growl')}}");
|
|
@endif
|
|
@endif
|
|
$('.logout').click(function(e){
|
|
e.preventDefault();
|
|
if(bootbox.confirm("{{ __('boilerplate::layout.logoutconfirm') }}", function(e){
|
|
if(e === false) return;
|
|
$('#logout-form').submit();
|
|
}));
|
|
});
|
|
});
|
|
</script>
|
|
@stack('js')
|
|
</body>
|
|
</html>
|