public contract?

This commit is contained in:
2019-04-28 21:55:20 -05:00
parent e9cd1661d6
commit 58ff2c72c5

View File

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