From 71d5b5f3028d3e14d805612100f36cf0c8d965a7 Mon Sep 17 00:00:00 2001 From: efbe Date: Fri, 27 Dec 2024 15:44:47 +0700 Subject: [PATCH] update tampilan dashboard admin --- app/Http/Controllers/AdminController.php | 28 ++++++++++++++++ resources/views/admin/index.blade.php | 42 +++++++++++++++++------- 2 files changed, 59 insertions(+), 11 deletions(-) diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index d8883a9..3679307 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -3,6 +3,7 @@ namespace App\Http\Controllers; use App\Models\PengajuanDpuDpa; +use App\Models\PengajuanPemutihan; use App\Models\PengajuanRevisiPublikasi; use App\Models\PengajuanSempro; use App\Models\PengajuanSidangAkhir; @@ -15,17 +16,44 @@ class AdminController extends Controller public function index(){ $layanan_dpudpa = PengajuanDpuDpa::count(); + $layanan_dpudpa_belum = PengajuanDpuDpa::where('ttd_kombi','!=','-')->count(); + $layanan_sempro = PengajuanSempro::count(); + $layanan_sempro_belum = PengajuanSempro::where('ttd_dpu','!=','-')->count(); + $layanan_sidangakhir = PengajuanSidangAkhir::count(); + $layanan_sidangakhir_belum = PengajuanSidangAkhir::where('ttd_dpu','!=','-')->count(); + $layanan_revisipublikasi = PengajuanRevisiPublikasi::count(); + $layanan_revisipublikasi_belum = PengajuanRevisiPublikasi::where('ttd_dpu','!=','-') + ->where('ttd_penguji1','!=','-') + ->where('ttd_penguji2','!=','-') + ->count(); + $layanan_wisuda = PengajuanWisuda::count(); + $layanan_wisuda_belum = PengajuanWisuda::where('ttd_wakil_dekan_1','!=','-')->count(); + + $layanan_pemutihan = PengajuanPemutihan::count(); + $layanan_pemutihan_belum = PengajuanPemutihan::where('status_operator','!=','-')->count(); return view('admin.index',[ 'title'=> 'Admin Dashboard', 'layanan_dpudpa'=>$layanan_dpudpa, + 'layanan_dpudpa_belum'=>$layanan_dpudpa_belum, + 'layanan_sempro'=>$layanan_sempro, + 'layanan_sempro_belum'=>$layanan_sempro_belum, + 'layanan_sidangakhir'=>$layanan_sidangakhir, + 'layanan_sidangakhir_belum'=>$layanan_sidangakhir_belum, + 'layanan_revisipublikasi'=>$layanan_revisipublikasi, + 'layanan_revisipublikasi_belum'=>$layanan_revisipublikasi_belum, + 'layanan_wisuda'=>$layanan_wisuda, + 'layanan_wisuda_belum'=>$layanan_wisuda_belum, + + 'layanan_pemutihan'=>$layanan_pemutihan, + 'layanan_pemutihan_belum'=>$layanan_pemutihan_belum, ]); } diff --git a/resources/views/admin/index.blade.php b/resources/views/admin/index.blade.php index 36657a9..eadbe32 100644 --- a/resources/views/admin/index.blade.php +++ b/resources/views/admin/index.blade.php @@ -38,8 +38,8 @@
-

{{ $layanan_dpudpa }}

- +

{{ $layanan_dpudpa_belum }} + /{{ $layanan_dpudpa }}

Total Pengajuan DPU/DPA

@@ -54,7 +54,8 @@
-

{{ $layanan_sempro }}

+

{{ $layanan_sempro_belum }} + /{{ $layanan_sempro }}

Total Pengajuan Seminar Proposal

@@ -71,7 +72,8 @@
-

{{ $layanan_sidangakhir }}

+

{{ $layanan_sidangakhir_belum }} + /{{ $layanan_sidangakhir }}

Total Pengajuan Sidang Akhir

@@ -87,7 +89,8 @@
-

{{ $layanan_revisipublikasi }}

+

{{ $layanan_revisipublikasi_belum }} + /{{ $layanan_revisipublikasi }}

Total Pengajuan Publikasi / Revisi

@@ -97,15 +100,17 @@ More info
- + +
+
-
+
-

{{ $layanan_wisuda }}

- -

Total Pengajuan Syarat Wisuda

+

{{ $layanan_wisuda_belum }} + /{{ $layanan_wisuda }}

+

Total Pengajuan Wisuda / Yudisium

@@ -113,8 +118,23 @@ More info
- +
+ +
+
+

{{ $layanan_pemutihan_belum }} + /{{ $layanan_pemutihan }}

+

Total Pengajuan Pemutihan

+
+
+ +
+ More info +
+
+ +