From 36e2e49f70013a0310be0e3ccc321c1008281614 Mon Sep 17 00:00:00 2001 From: Ritikesh yadav Date: Tue, 21 May 2024 17:01:11 +0530 Subject: [PATCH] fixed seller form --- .../Controllers/Frontend/DashboardController.php | 12 ++++++------ resources/views/Frontend/menu-after-lg.blade.php | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/Http/Controllers/Frontend/DashboardController.php b/app/Http/Controllers/Frontend/DashboardController.php index 67c6f1b..17ce537 100644 --- a/app/Http/Controllers/Frontend/DashboardController.php +++ b/app/Http/Controllers/Frontend/DashboardController.php @@ -562,9 +562,9 @@ class DashboardController extends Controller public function alternativeInvestmentFundSellerForm($custom_id = null) { - if (MarketplaceSellerForm::where('users_id', auth()->guard('users')->user()->id)->where('status', true)->doesntExist()) { - abort(403); - } + // if (MarketplaceSellerForm::where('users_id', auth()->guard('users')->user()->id)->where('status', true)->doesntExist()) { + // abort(403); + // } if ($custom_id) { $productId = MonthlyUpdateMaster::where(['custom_id' => \Crypt::decrypt($custom_id), 'users_id' => auth()->guard('users')->user()->id])->value('products_id'); $alternativeInvestmentFund = AlternativeInvestmentFund::where('products_id', $productId)->first(); @@ -597,9 +597,9 @@ class DashboardController extends Controller public function fractionalRealEstateSellerForm($custom_id = null) { - if (MarketplaceSellerForm::where('users_id', auth()->guard('users')->user()->id)->where('status', true)->doesntExist()) { - abort(403); - } + // if (MarketplaceSellerForm::where('users_id', auth()->guard('users')->user()->id)->where('status', true)->doesntExist()) { + // abort(403); + // } if ($custom_id) { $productId = MonthlyUpdateMaster::where(['custom_id' => \Crypt::decrypt($custom_id), 'users_id' => auth()->guard('users')->user()->id])->value('products_id'); $fractionalRealEstate = FractionalRealEstate::where('products_id', $productId)->first(); diff --git a/resources/views/Frontend/menu-after-lg.blade.php b/resources/views/Frontend/menu-after-lg.blade.php index 9d974f6..34e3794 100644 --- a/resources/views/Frontend/menu-after-lg.blade.php +++ b/resources/views/Frontend/menu-after-lg.blade.php @@ -368,11 +368,11 @@
  • - {{-- @if(!auth()->guard('users')->check()) + @if(!auth()->guard('users')->check()) List Your Asset - @else --}} + @else List Your Asset - {{-- @endif --}} + @endif
  • {{-- href="{{ route('market-list') }}" --}}