update: order unsolved reports first

This commit is contained in:
Roardom
2022-08-09 12:20:03 -05:00
parent 2fc3a01d78
commit edc64feed2
@@ -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]);
}