update tampilan dashboard admin

This commit is contained in:
efbe 2024-12-27 15:44:47 +07:00
parent c1975774cd
commit 71d5b5f302
2 changed files with 59 additions and 11 deletions

View File

@ -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,
]);
}

View File

@ -38,8 +38,8 @@
<!-- small box -->
<div class="small-box bg-info">
<div class="inner">
<h3>{{ $layanan_dpudpa }}</h3>
<h4>{{ $layanan_dpudpa_belum }}
/<strong>{{ $layanan_dpudpa }}</strong></h4>
<p>Total Pengajuan DPU/DPA</p>
</div>
<div class="icon">
@ -54,7 +54,8 @@
<!-- small box -->
<div class="small-box bg-info">
<div class="inner">
<h3>{{ $layanan_sempro }}</h3>
<h4>{{ $layanan_sempro_belum }}
/<strong>{{ $layanan_sempro }}</strong></h4>
<p>Total Pengajuan Seminar Proposal</p>
</div>
@ -71,7 +72,8 @@
<!-- small box -->
<div class="small-box bg-info">
<div class="inner">
<h3>{{ $layanan_sidangakhir }}</h3>
<h4>{{ $layanan_sidangakhir_belum }}
/<strong>{{ $layanan_sidangakhir }}</strong></h4>
<p>Total Pengajuan Sidang Akhir</p>
</div>
@ -87,7 +89,8 @@
<!-- small box -->
<div class="small-box bg-info">
<div class="inner">
<h3>{{ $layanan_revisipublikasi }}</h3>
<h4>{{ $layanan_revisipublikasi_belum }}
/<strong>{{ $layanan_revisipublikasi }}</strong></h4>
<p>Total Pengajuan Publikasi / Revisi</p>
</div>
@ -97,15 +100,17 @@
<a href="{{route('layanan-revisipublikasi.index')}}" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
</div>
</div>
</div>
<div class="row">
<!-- /.block Kotak -->
<div class="col">
<div class="col col-3">
<!-- small box -->
<div class="small-box bg-info">
<div class="inner">
<h3>{{ $layanan_wisuda }}</h3>
<p>Total Pengajuan Syarat Wisuda</p>
<h4>{{ $layanan_wisuda_belum }}
/<strong>{{ $layanan_wisuda }}</strong></h4>
<p>Total Pengajuan Wisuda / Yudisium</p>
</div>
<div class="icon">
<i class="ion ion-bag"></i>
@ -113,8 +118,23 @@
<a href="{{route('layanan-wisuda.index')}}" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col col-3">
<!-- small box -->
<div class="small-box bg-info">
<div class="inner">
<h4>{{ $layanan_pemutihan_belum }}
/<strong>{{ $layanan_pemutihan }}</strong></h4>
<p>Total Pengajuan Pemutihan</p>
</div>
<div class="icon">
<i class="ion ion-bag"></i>
</div>
<a href="{{route('layanan-pemutihan.index')}}" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
</div>
</div>
</div>
</section>
<!-- /.content -->
</div>