diff --git a/app/Http/Controllers/MonitoringController.php b/app/Http/Controllers/MonitoringController.php index ad5b447..e92b41b 100644 --- a/app/Http/Controllers/MonitoringController.php +++ b/app/Http/Controllers/MonitoringController.php @@ -34,7 +34,9 @@ public function pemutihan(){ 'pengajuan_pemutihans.*', 'users.nama_gelar as dosen_pengampu', ) - ->join('users','users.id','=','dosen_id')->get(); + ->join('users','users.id','=','dosen_id') + ->orderBy('created_at','desc') + ->get(); return view('monitoring.pemutihan',['title' => 'Monitoring Pemutihan','data'=>$data]); } diff --git a/resources/views/monitoring/pemutihan.blade.php b/resources/views/monitoring/pemutihan.blade.php index d9a51ad..5876b75 100644 --- a/resources/views/monitoring/pemutihan.blade.php +++ b/resources/views/monitoring/pemutihan.blade.php @@ -66,7 +66,7 @@