mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-03 08:50:22 -05:00
update: order unsolved reports first
This commit is contained in:
@@ -28,7 +28,7 @@ class ReportController extends Controller
|
||||
*/
|
||||
public function index(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
{
|
||||
$reports = Report::latest()->paginate(25);
|
||||
$reports = Report::orderBy('solved')->latest()->paginate(25);
|
||||
|
||||
return \view('Staff.report.index', ['reports' => $reports]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user