past contracts for nav bar on admin dashboard menu

This commit is contained in:
2020-06-29 00:27:16 -05:00
parent e9ed06dbf3
commit bf5748d58e

View File

@@ -45,9 +45,10 @@ class ContractAdminController extends Controller
//Get the accepted bid for the contract and add it to the array //Get the accepted bid for the contract and add it to the array
$accepted = AcceptedBid::where([ $accepted = AcceptedBid::where([
'contract_id' => $contract['contract_id'], 'contract_id' => $contract['contract_id'],
])->get()->toArray(); ])->get();
dd($accepted);
$contract['accepted'] = $accepted; $contract['accepted'] = $accepted->bid_amount;
$contract['accepted_notes'] = $accepted->notes;
} }
dd($contracts); dd($contracts);