modify bids

This commit is contained in:
2019-04-28 23:56:44 -05:00
parent 2143dfb1d1
commit 6cf3f6b196
3 changed files with 33 additions and 71 deletions

View File

@@ -184,11 +184,11 @@ class ContractController extends Controller
* Controller function to display modify bid page
*/
public function displayModifyBid($id) {
$contractId = $id;
$contract = Contract::where(['contract_id' => $contractId])->get()->toArray();
//With the bid id number, look up the bid in the database to get the contract information
$bid = Bid::where(['id' => $id])->get()->toArray();
dd($contract);
//Retrieve the contract from the database
$contract = Contract::where(['contract_id' => $bid['contract_id']])->get()->toArray();
return view('contracts.modifybid')->with('contract', $contract);
}