fixed seller form

This commit is contained in:
Ritikesh yadav
2024-05-21 17:01:11 +05:30
parent 608588a196
commit 36e2e49f70
2 changed files with 9 additions and 9 deletions

View File

@@ -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();