fix changes
This commit is contained in:
@@ -196,6 +196,7 @@ class DashboardController extends Controller
|
||||
$investingUserCount = MonthlyUpdateMaster::distinct('users_id')->count('users_id');
|
||||
$totalProductCount = Product::count();
|
||||
$leads = Lead::with('leadSource')->where('lead_owner', auth()->user()->id)->latest()->get();
|
||||
// dd($leads);
|
||||
$tasks = LeadTasksMeeting::where('owner', auth()->user()->id)->tasks()->get();
|
||||
$meetings = LeadTasksMeeting::where('host', (string)auth()->user()->id)->meetings()->get();
|
||||
// dd($meetings);
|
||||
|
||||
@@ -51,6 +51,14 @@ class ManageLeadController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
public function getInvestorDetail(Request $request)
|
||||
{
|
||||
$id = $request->id;
|
||||
return response()->json([
|
||||
'status'=>200,
|
||||
'data'=>User::where('id',$id)->select('contact_number','email','name')->first(),
|
||||
]);
|
||||
}
|
||||
public function ongoing_leads()
|
||||
{
|
||||
// return view('Admin.Pages.manage_leads.ongoing_leads');
|
||||
|
||||
@@ -114,7 +114,7 @@ class OverviewController extends Controller
|
||||
|
||||
public function interestedBuyers($id, $table)
|
||||
{
|
||||
$interestedBuyers = MarketplaceBuyerForm::where(['associated_id' => $id, 'table' => $table])->get();
|
||||
$interestedBuyers = MarketplaceBuyerForm::where(['associated_id' => $id, 'table' => $table])->orderBy('updated_at','DESC')->get();
|
||||
|
||||
if ($table == 'marketplace_fre_sellers') {
|
||||
$data = MarketplaceFractionalRealEstateSeller::with('seller')->where('id', $id)->firstOrFail();
|
||||
|
||||
@@ -62,7 +62,9 @@ class DashboardController extends Controller
|
||||
// $row['marketplace_aif_sellers_data'] = MarketplaceAlternativeInvestmentFundSeller::where('id', $row->associated_id)->first();
|
||||
// }
|
||||
// return $market_place_data;
|
||||
$sellerData = MarketplaceSellerForm::has('aif')->with('aif')->where('users_id',$id)->get();
|
||||
// $sellerData = MarketplaceSellerForm::has('aif')->with('aif')->where('users_id',$id)->get();
|
||||
$sellerData = MarketplaceSellerForm::with('aif')->where('users_id',$id)->get();
|
||||
// dd($sellerData);
|
||||
// return $sellerData[0]->aif['name_of_the_aif_fund'];
|
||||
if(count($sellerData->toArray()))
|
||||
{
|
||||
@@ -117,7 +119,7 @@ class DashboardController extends Controller
|
||||
// $row['marketplace_fre_sellers_data'] = MarketplaceFractionalRealEstateSeller::where('id', $row->associated_id)->first();
|
||||
// }
|
||||
// return $market_place_data;
|
||||
$sellerData = MarketplaceSellerForm::has('fre')->with('fre')->where('users_id',$id)->get();
|
||||
$sellerData = MarketplaceSellerForm::with('fre')->where('users_id',$id)->get();
|
||||
// dd(count($sellerData->toArray()));
|
||||
if(count($sellerData->toArray()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user