Files
opensem/resources/views/layouts/app.blade.php
Ludovic CANDELLIER 36267139a1 [WIP] Setup of skeleton
2020-03-25 00:08:27 +01:00

52 lines
2.0 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>@if (isset($title)) {{ $title }} @endif | {{ config('app.name') }}</title>
<link rel="stylesheet" href="{{ mix('/boilerplate.min.css', '/assets/vendor/boilerplate') }}">
<link rel="stylesheet" href="/css/admin.min.css">
@stack('css')
</head>
<body class="sidebar-mini skin-{{ config('boilerplate.app.skin', 'blue') }}">
<div class="wrapper">
@include('layouts.partials.app.header')
@include('layouts.partials.app.mainsidebar')
<div class="content-wrapper">
<section class="content-header">
@include('layouts.partials.app.contentheader')
</section>
<section class="content">
@yield('content')
</section>
</div>
@include('layouts.partials.app.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>