public contract?
This commit is contained in:
@@ -69,8 +69,8 @@ class ContractController extends Controller
|
||||
//Count the number of bids, and add them to the arrays
|
||||
foreach($contracts as $contract) {
|
||||
dd($contract);
|
||||
$tempCount = Bid::where(['contract_id' => $contract['id']])->count('contract_id');
|
||||
$bids = Bid::where(['contract_id' => $contract['id']])->get()->toArray();
|
||||
$tempCount = Bid::where(['contract_id' => $contract['contract_id']])->count('contract_id');
|
||||
$bids = Bid::where(['contract_id' => $contract['contract_id']])->get()->toArray();
|
||||
|
||||
$contract['bid_count'] = $tempCount;
|
||||
$contract['bids'] = $bids;
|
||||
|
||||
Reference in New Issue
Block a user