fix changes

This commit is contained in:
Ritikesh yadav
2024-04-26 18:40:07 +05:30
parent c6101d6de8
commit e98dbee59a
16 changed files with 2904 additions and 3118 deletions

View File

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

View File

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

View File

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

View File

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