From 166e47a3f80f1bd17760e9b07983a58d00809490 Mon Sep 17 00:00:00 2001 From: Slymee Date: Thu, 18 Jan 2024 11:56:54 +0545 Subject: [PATCH] Declared strict type in class files --- app/Http/Controllers/AdminController.php | 1 + app/Http/Controllers/CategoryController.php | 1 + app/Http/Controllers/DashboardController.php | 1 + .../Controllers/PasswordResetController.php | 1 + app/Http/Controllers/ProductAdController.php | 7 +++++-- app/Http/Controllers/UserController.php | 1 + .../UserPasswordResetController.php | 1 + app/Http/Middleware/GuestAuthenticate.php | 1 + app/Http/Middleware/LoginPageAuthenticate.php | 1 + app/Http/Requests/CategoryRequest.php | 1 + app/Http/Requests/ForgotPasswordRequest.php | 1 + app/Http/Requests/LoginRequest.php | 1 + app/Http/Requests/RegisterUserRequest.php | 1 + app/Http/Requests/ResetPasswordRequest.php | 1 + app/Models/Admin.php | 1 + app/Models/Category.php | 1 + app/Models/CategoryProduct.php | 1 + app/Models/ProductAd.php | 1 + app/Models/User.php | 1 + .../2014_10_12_000000_create_users_table.php | 1 + ...000_create_password_reset_tokens_table.php | 1 + ..._08_19_000000_create_failed_jobs_table.php | 1 + ...01_create_personal_access_tokens_table.php | 1 + ...3_12_22_090343_create_categories_table.php | 1 + .../2024_01_08_234553_create_admins_table.php | 1 + ..._01_17_030542_create_product_ads_table.php | 1 + ...7_165654_create_category_product_table.php | 1 + resources/css/create-product.css | 4 ++++ .../commonComponents/admin-category.blade.php | 4 +--- .../create-product-category.blade.php | 8 ++++++++ .../views/userend/create-product.blade.php | 19 +++++++++++++++---- 31 files changed, 59 insertions(+), 9 deletions(-) create mode 100644 resources/views/userend/commonComponents/create-product-category.blade.php diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index 387cf93..7ad10e0 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -1,4 +1,5 @@ whereNull('parent_id')->paginate(10); + return view('userend.create-product', compact('mainParent')); } /** diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 698799a..2282039 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -1,4 +1,5 @@ children as $child) @include('commonComponents.admin-category', ['category' => $child]) @endforeach -@endif - - +@endif \ No newline at end of file diff --git a/resources/views/userend/commonComponents/create-product-category.blade.php b/resources/views/userend/commonComponents/create-product-category.blade.php new file mode 100644 index 0000000..9573fb9 --- /dev/null +++ b/resources/views/userend/commonComponents/create-product-category.blade.php @@ -0,0 +1,8 @@ + + + +@if ($category->children->isNotEmpty()) + @foreach ($category->children as $child) + @include('userend.commonComponents.create-product-category', ['category' => $child]) + @endforeach +@endif \ No newline at end of file diff --git a/resources/views/userend/create-product.blade.php b/resources/views/userend/create-product.blade.php index 13cf5e6..c13e668 100644 --- a/resources/views/userend/create-product.blade.php +++ b/resources/views/userend/create-product.blade.php @@ -38,13 +38,24 @@
+ + @if(session('message')) + {{ session('message') }} + @endif + + @if($errors->any()) + @foreach ($errors->all() as $error) + {{ $error}}
+ @endforeach + @endif +