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