From a57fa7c3e34ecc928aabcddd5ddaed947cd02e8a Mon Sep 17 00:00:00 2001 From: purple Date: Mon, 25 Mar 2024 17:49:44 +0100 Subject: [PATCH] feat `views`: Start work on improved wrapper importing that doesn't use bash. --- resources/views/blueprint/admin/admin.blade.php | 5 +++++ resources/views/blueprint/admin/wrappers/.gitkeep | 0 resources/views/blueprint/dashboard/dashboard.blade.php | 5 +++++ resources/views/blueprint/dashboard/wrappers/.gitkeep | 0 4 files changed, 10 insertions(+) create mode 100644 resources/views/blueprint/admin/wrappers/.gitkeep create mode 100644 resources/views/blueprint/dashboard/wrappers/.gitkeep diff --git a/resources/views/blueprint/admin/admin.blade.php b/resources/views/blueprint/admin/admin.blade.php index 0924a58..fad36ed 100644 --- a/resources/views/blueprint/admin/admin.blade.php +++ b/resources/views/blueprint/admin/admin.blade.php @@ -71,4 +71,9 @@ --> + @foreach (File::allFiles(__DIR__ . '/wrappers') as $partial) + @if ($partial->getExtension() == 'php') + @include(str_replace(base_path() . '/', '', $partial->getPathname())) + @endif + @endforeach @endsection \ No newline at end of file diff --git a/resources/views/blueprint/admin/wrappers/.gitkeep b/resources/views/blueprint/admin/wrappers/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/blueprint/dashboard/dashboard.blade.php b/resources/views/blueprint/dashboard/dashboard.blade.php index 32c2a61..96ef873 100644 --- a/resources/views/blueprint/dashboard/dashboard.blade.php +++ b/resources/views/blueprint/dashboard/dashboard.blade.php @@ -5,4 +5,9 @@ --> + @foreach (File::allFiles(__DIR__ . '/wrappers') as $partial) + @if ($partial->getExtension() == 'php') + @include(str_replace(base_path() . '/', '', $partial->getPathname())) + @endif + @endforeach @endsection \ No newline at end of file diff --git a/resources/views/blueprint/dashboard/wrappers/.gitkeep b/resources/views/blueprint/dashboard/wrappers/.gitkeep new file mode 100644 index 0000000..e69de29