past contract stuff

This commit is contained in:
2020-06-29 00:33:36 -05:00
parent e264f23237
commit 52ae227085

View File

@@ -38,7 +38,9 @@ class ContractAdminController extends Controller
}
public function displayPastContracts() {
$contracts = Contract::where(['finished' => true])->where('updated_at', '>', Carbon::now()->subMonths(6))->get();
$contracts = Contract::where(['finished' => true])
->where('updated_at', '>', Carbon::now()->subMonths(6))
->orderBy('updated_at', 'ASC')->get();
return view('contracts.admin.past')->with('contracts', $contracts);
}