fixing changes and product delete issue

This commit is contained in:
Ritikesh yadav
2024-05-17 16:47:12 +05:30
parent 71bf0b4afd
commit edbbc6972e
5 changed files with 57 additions and 4 deletions

View File

@@ -615,6 +615,8 @@ class MarketPlaceController extends Controller
$marketFRE = MarketplaceFractionalRealEstateSeller::where('slug', $slug)->first();
$offering['own-product'] = MarketplaceSellerForm::where(['id' => $marketFRE->seller_forms_id, 'users_id' => auth('sanctum')->id()])->exists();
$offering['data'] = $marketFRE;
// dd($marketFRE);
$offering['invested'] = $this->checkInvestmentInterestedAPI($offering['data'], 'marketplace_fre_sellers')['interested-status'];
$offering['invested-data'] = $this->checkInvestmentInterestedDataAPI($offering['data'], 'marketplace_fre_sellers')['interested-status-data']; //new added