past contracts for nav bar on admin dashboard menu

This commit is contained in:
2020-06-29 00:22:12 -05:00
parent 50ddedb652
commit 0c1174d113

View File

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