past contracts for nav bar on admin dashboard menu

This commit is contained in:
2020-06-29 00:22:51 -05:00
parent 0c1174d113
commit 75e20fb5d9

View File

@@ -39,7 +39,7 @@ class ContractAdminController extends Controller
public function displayPastContracts() {
$contracts = Contract::where(['finished' => true])->where('end_date', '>', Carbon::now()->subMonths(2))->get()->toArray();
dd($contracts);
//Get the accepted bid for the contract and load it into the array
foreach($contracts as $contract) {
//Get the accepted bid for the contract and add it to the array