<!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') }}">
    @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')
    <script src="{{ mix('js/app.js') }}"></script>
    @stack('scripts')
</body>
</html>
