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 @@
Total Pengajuan DPU/DPA
Total Pengajuan Seminar Proposal
Total Pengajuan Sidang Akhir
Total Pengajuan Publikasi / Revisi
Total Pengajuan Syarat Wisuda
+Total Pengajuan Wisuda / Yudisium
Total Pengajuan Pemutihan
+