From 398f5e209729b6efbb1dda8c2e966d4283135a13 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Fri, 7 Jul 2023 00:03:03 +0600 Subject: [PATCH] Added necessary template files and view components for scaffolding of the private area of the application. This includes error and success message components for efficient handling of user feedback messages. Added navigation components and dashboard structure to the private layout. This will streamline the implementation of features in the private area and ensure a consistent user interface. --- app/View/Components/Private/Layout.php | 17 +++ .../views/private/layout/_errors.blade.php | 9 ++ .../private/layout/_navigation.blade.php | 18 +++ .../views/private/layout/_success.blade.php | 5 + resources/views/private/layout/app.blade.php | 125 ++++++++++++++++++ 5 files changed, 174 insertions(+) create mode 100644 app/View/Components/Private/Layout.php create mode 100644 resources/views/private/layout/_errors.blade.php create mode 100644 resources/views/private/layout/_navigation.blade.php create mode 100644 resources/views/private/layout/_success.blade.php create mode 100644 resources/views/private/layout/app.blade.php diff --git a/app/View/Components/Private/Layout.php b/app/View/Components/Private/Layout.php new file mode 100644 index 0000000..f4f561a --- /dev/null +++ b/app/View/Components/Private/Layout.php @@ -0,0 +1,17 @@ + + + + + diff --git a/resources/views/private/layout/_navigation.blade.php b/resources/views/private/layout/_navigation.blade.php new file mode 100644 index 0000000..7dd830a --- /dev/null +++ b/resources/views/private/layout/_navigation.blade.php @@ -0,0 +1,18 @@ + diff --git a/resources/views/private/layout/_success.blade.php b/resources/views/private/layout/_success.blade.php new file mode 100644 index 0000000..ecb41c9 --- /dev/null +++ b/resources/views/private/layout/_success.blade.php @@ -0,0 +1,5 @@ + diff --git a/resources/views/private/layout/app.blade.php b/resources/views/private/layout/app.blade.php new file mode 100644 index 0000000..bf3a2f7 --- /dev/null +++ b/resources/views/private/layout/app.blade.php @@ -0,0 +1,125 @@ + + + + + + + @yield('meta_title', '') + + + + @vite('resources/volt/scss/app.scss') + + + + + + + + + +
+ + + + @includeWhen($errors->any(), 'private.layout._errors', ['errors' => $errors->all()]) + @includeWhen(Session::has('success'), 'private.layout._success', ['success' => Session::get('success')]) + + {{ $slot }} + + +
+ + @vite('resources/volt/js/app.js') + +