<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
        <meta name="author" content="{!! config('app.author') !!}">
        <meta name="keywords" content="{!! config('app.keywords') !!}">
        <meta name="csrf-token" content="{{ csrf_token() }}">
        <meta name="description" content="{{ isset($description) ? $description : config('app.description') }}"/>

        @include('titan::partials.favicons')

        <title>{{ isset($title) ? $title : config('app.name') }}</title>

        @if(config('titan.admin_fonts'))
            <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
        @endif

        <link rel="stylesheet" href="/css/admin.css?v=1">

        @yield('styles')
    </head>

    <body class="hold-transition skin-{{ config('titan.admin_skin') }} sidebar-mini">
        <h1 class="hidden d-none">{{ isset($title) ? $title : config('app.name') }}</h1>

        <div class="wrapper">
            @include('titan::admin.partials.header')

            @include('titan::admin.partials.navigation')

            <div class="content-wrapper">
                <h2 class="hidden">Breadcrumb</h2>
                <section class="content-header">
                    @include('titan::admin.partials.pagecrumb')

                    @include('titan::admin.partials.breadcrumb')
                </section>

                <section class="content">
                    <h2 class="hidden">Page</h2>
                    @yield('content')
                </section>
            </div>

            <footer class="main-footer">
                <div class="row">
                    <div class="col-sm-6 text-left">
                        <small>Copyright &copy; {{ date('Y') }}
                            <strong>{{ config('app.name') }}</strong>
                        </small>
                    </div>
                    <div class="col-sm-6 text-right">
                        <small>
                            Developed by
                            <a href="https://github.com/bpocallaghan" target="_blank">{!! config('app.author') !!}</a>
                        </small>
                    </div>
                </div>
            </footer>
        </div>

        @include('notify::notify')
        @include('titan::admin.partials.modals')

        <script type="text/javascript" charset="utf-8" src="/js/admin.js?v=1"></script>
        <script type="text/javascript" charset="utf-8">
            $(document).ready(function () {
                initAdmin();
            });
        </script>

        @yield('scripts')

        @if(config('titan.admin_google_analytics'))
            @include('titan::partials.analytics')
        @endif
    </body>
</html>
