From c1047a679a075b7fad4ef2b987d65b974da842cd Mon Sep 17 00:00:00 2001 From: liapples Date: Fri, 27 Aug 2021 10:04:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=BA=95=E9=83=A8=E7=9A=84Dc?= =?UTF-8?q?at=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/bootstrap.php | 1 + app/AdminAgent/bootstrap.php | 1 + app/AdminGuide/bootstrap.php | 1 + app/AdminSettled/bootstrap.php | 1 + app/AdminSupplier/bootstrap.php | 1 + .../views/admin/layouts/container.blade.php | 39 +++++++++++++++++++ 6 files changed, 44 insertions(+) create mode 100644 resources/views/admin/layouts/container.blade.php diff --git a/app/Admin/bootstrap.php b/app/Admin/bootstrap.php index 40cf396..4f4db16 100644 --- a/app/Admin/bootstrap.php +++ b/app/Admin/bootstrap.php @@ -24,3 +24,4 @@ use Dcat\Admin\Show; * Admin::js('/packages/prettydocs/js/main.js'); * */ +app('view')->prependNamespace('admin', resource_path('views/admin')); diff --git a/app/AdminAgent/bootstrap.php b/app/AdminAgent/bootstrap.php index 40cf396..4f4db16 100644 --- a/app/AdminAgent/bootstrap.php +++ b/app/AdminAgent/bootstrap.php @@ -24,3 +24,4 @@ use Dcat\Admin\Show; * Admin::js('/packages/prettydocs/js/main.js'); * */ +app('view')->prependNamespace('admin', resource_path('views/admin')); diff --git a/app/AdminGuide/bootstrap.php b/app/AdminGuide/bootstrap.php index 40cf396..4f4db16 100644 --- a/app/AdminGuide/bootstrap.php +++ b/app/AdminGuide/bootstrap.php @@ -24,3 +24,4 @@ use Dcat\Admin\Show; * Admin::js('/packages/prettydocs/js/main.js'); * */ +app('view')->prependNamespace('admin', resource_path('views/admin')); diff --git a/app/AdminSettled/bootstrap.php b/app/AdminSettled/bootstrap.php index 40cf396..4f4db16 100644 --- a/app/AdminSettled/bootstrap.php +++ b/app/AdminSettled/bootstrap.php @@ -24,3 +24,4 @@ use Dcat\Admin\Show; * Admin::js('/packages/prettydocs/js/main.js'); * */ +app('view')->prependNamespace('admin', resource_path('views/admin')); diff --git a/app/AdminSupplier/bootstrap.php b/app/AdminSupplier/bootstrap.php index 40cf396..4f4db16 100644 --- a/app/AdminSupplier/bootstrap.php +++ b/app/AdminSupplier/bootstrap.php @@ -24,3 +24,4 @@ use Dcat\Admin\Show; * Admin::js('/packages/prettydocs/js/main.js'); * */ +app('view')->prependNamespace('admin', resource_path('views/admin')); diff --git a/resources/views/admin/layouts/container.blade.php b/resources/views/admin/layouts/container.blade.php new file mode 100644 index 0000000..5b88f95 --- /dev/null +++ b/resources/views/admin/layouts/container.blade.php @@ -0,0 +1,39 @@ + + + + +{!! admin_section(Dcat\Admin\Admin::SECTION['BODY_INNER_BEFORE']) !!} + +
+ @include('admin::partials.sidebar') + + @include('admin::partials.navbar') + +
+
+ @yield('app') +
+
+
+ + + +{!! admin_section(Dcat\Admin\Admin::SECTION['BODY_INNER_AFTER']) !!} + +{!! Dcat\Admin\Admin::asset()->jsToHtml() !!} + + + + + +