contract admin panel - end contract

This commit is contained in:
2019-04-30 01:22:54 -05:00
parent 5b8575cea6
commit 08448a24bb
4 changed files with 9 additions and 11 deletions

View File

@@ -96,9 +96,12 @@ class ContractAdminController extends Controller
}
public function displayEndContract($id) {
$contractId = $id;
//Gather the information for the contract, and all bids on the contract
$contract = Contract::where(['id' => $id])->first()->toArray();
$bids = Bid::where(['contract_id' => $id])-get()->toArray();
return view('contracts.admin.endcontract')->with('contractId', $contractId);
return view('contracts.admin.endcontract')->with('contract', $contract)
->with('bids', $bids);
}
public function storeEndContract(Request $request) {