past contract stuff
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user