content.blade.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @section('content-header')
  2. <section class="content-header breadcrumbs-top">
  3. @if($header || $description)
  4. <h1 class=" float-left">
  5. <span class="text-capitalize">{!! $header !!}</span>
  6. <small>{!! $description !!}</small>
  7. </h1>
  8. @elseif($breadcrumb || config('admin.enable_default_breadcrumb'))
  9. <div>&nbsp;</div>
  10. @endif
  11. @include('distributor.partials.breadcrumb')
  12. </section>
  13. @endsection
  14. @section('content')
  15. @include('distributor.partials.alerts')
  16. @include('distributor.partials.exception')
  17. {!! $content !!}
  18. @include('distributor.partials.toastr')
  19. @endsection
  20. @section('app')
  21. {!! Dcat\Admin\Admin::asset()->styleToHtml() !!}
  22. <div class="content-header">
  23. @yield('content-header')
  24. </div>
  25. <div class="content-body" id="app">
  26. {{-- 页面埋点--}}
  27. {!! admin_section(Dcat\Admin\Admin::SECTION['APP_INNER_BEFORE']) !!}
  28. @yield('content')
  29. {{-- 页面埋点--}}
  30. {!! admin_section(Dcat\Admin\Admin::SECTION['APP_INNER_AFTER']) !!}
  31. </div>
  32. {!! Dcat\Admin\Admin::asset()->scriptToHtml() !!}
  33. <div class="extra-html">{!! Dcat\Admin\Admin::html() !!}</div>
  34. @endsection
  35. @if(! request()->pjax())
  36. @include('distributor.layouts.page')
  37. @else
  38. <title>{{ Dcat\Admin\Admin::title() }} @if($header) | {{ $header }}@endif</title>
  39. <script>Dcat.wait()</script>
  40. {!! Dcat\Admin\Admin::asset()->cssToHtml() !!}
  41. {!! Dcat\Admin\Admin::asset()->jsToHtml() !!}
  42. @yield('app')
  43. @endif