fixing changes

This commit is contained in:
Ritikesh yadav
2024-05-16 18:45:41 +05:30
parent 88ff326d7c
commit 98f6571b29
11 changed files with 315 additions and 10 deletions

View File

@@ -322,14 +322,17 @@ class OverviewController extends Controller
if ($table == 1) {
$data = MarketplaceFractionalRealEstateSeller::with('seller', 'company')->where('id', $id)->firstOrFail();
$tableName = 'marketplace_fre_sellers';
} elseif ($table == 2) {
$data = MarketplaceAlternativeInvestmentFundSeller::with('seller')->where('id', $id)->firstOrFail();
$tableName = 'marketplace_aif_sellers';
} elseif ($table == 3) {
$data = MarketplaceOtherProductsSeller::with('seller')->where('id', $id)->firstOrFail();
}
$anyOneBuyed = MarketplaceBuyerForm::where(['associated_id'=>$id,'table'=>$tableName])->exists();
// dd($data);
return view('Admin.Pages.pre_owned_investment.pending_investment_view', compact('data', 'table'));
return view('Admin.Pages.pre_owned_investment.pending_investment_view', compact('data', 'table','anyOneBuyed'));
}
public function listingStatus(Request $request)