fixing freedcamp bugs
This commit is contained in:
@@ -341,8 +341,18 @@ class OverviewController extends Controller
|
||||
->latest('marketplace_aif_sellers.created_at')->get();
|
||||
$freBuyerForm = MarketplaceFractionalRealEstateSeller::with('seller', 'company')->join('marketplace_buyer_forms', 'marketplace_fre_sellers.id', 'marketplace_buyer_forms.associated_id')->latest('marketplace_fre_sellers.created_at')->get();
|
||||
$opBuyerForm = MarketplaceOtherProductsSeller::with('seller', 'company')->join('marketplace_buyer_forms', 'marketplace_op_sellers.id', 'marketplace_buyer_forms.associated_id')->latest('marketplace_op_sellers.created_at')->get();
|
||||
$completedData = collect();
|
||||
$aifBuyerForm->each(function($value) use($completedData){
|
||||
$completedData[] = $value;
|
||||
});
|
||||
$freBuyerForm->each(function($value) use($completedData){
|
||||
$completedData[] = $value;
|
||||
});
|
||||
// $latestArray = array_merge($aifBuyerForm->toArray(),$freBuyerForm->toArray());
|
||||
$newData = $completedData->sortBy('created_at');
|
||||
|
||||
$companies = Company::active()->pluck('company_name', 'id');
|
||||
return view('Admin.Pages.pre_owned_investment.transactions', compact('aifBuyerForm', 'freBuyerForm', 'opBuyerForm', 'companies'));
|
||||
return view('Admin.Pages.pre_owned_investment.transactions', compact('aifBuyerForm', 'freBuyerForm', 'opBuyerForm', 'companies','newData'));
|
||||
}
|
||||
|
||||
// public function manage_seller_profile()
|
||||
|
||||
Reference in New Issue
Block a user