@section('content')
    <section class="content">
        @include('admin::partials.alerts')
        @include('admin::partials.exception')

        {!! $content !!}

        @include('admin::partials.toastr')
    </section>
@endsection

@section('app')
    {!! Kylin\Admin\Admin::asset()->styleToHtml() !!}

    <div class="content-body" id="app">
        {{-- 页面埋点--}}
        {!! admin_section(Kylin\Admin\Admin::SECTION['APP_INNER_BEFORE']) !!}

        @yield('content')

        {{-- 页面埋点--}}
        {!! admin_section(Kylin\Admin\Admin::SECTION['APP_INNER_AFTER']) !!}
    </div>

    {!! Kylin\Admin\Admin::asset()->scriptToHtml() !!}
    <div class="extra-html">{!! Kylin\Admin\Admin::html() !!}</div>
@endsection


@if(!request()->pjax())
    @include('admin::layouts.full-page', ['header' => $header])
@else
    <title>{{ Kylin\Admin\Admin::title() }} @if($header)
            | {{ $header }}
        @endif</title>

    <script>Dcat.wait();</script>

    {!! Kylin\Admin\Admin::asset()->cssToHtml() !!}
    {!! Kylin\Admin\Admin::asset()->jsToHtml() !!}

    @yield('app')
@endif
