2024-02-27 22:53:57 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
2024-03-10 09:07:03 +07:00
|
|
|
use App\Models\PengajuanDpuDpa;
|
2024-03-30 19:43:46 +07:00
|
|
|
use App\Models\PengajuanRevisiPublikasi;
|
|
|
|
use App\Models\PengajuanSempro;
|
|
|
|
use App\Models\PengajuanSidangAkhir;
|
|
|
|
use App\Models\PengajuanWisuda;
|
2024-02-27 22:53:57 +07:00
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
2024-03-02 18:06:48 +07:00
|
|
|
|
2024-02-27 22:53:57 +07:00
|
|
|
class AdminController extends Controller
|
|
|
|
{
|
|
|
|
|
|
|
|
public function index(){
|
2024-03-10 09:07:03 +07:00
|
|
|
$layanan_dpudpa = PengajuanDpuDpa::count();
|
2024-03-30 19:43:46 +07:00
|
|
|
$layanan_sempro = PengajuanSempro::count();
|
|
|
|
$layanan_sidangakhir = PengajuanSidangAkhir::count();
|
|
|
|
$layanan_revisipublikasi = PengajuanRevisiPublikasi::count();
|
|
|
|
$layanan_wisuda = PengajuanWisuda::count();
|
|
|
|
return view('admin.index',[
|
|
|
|
'title'=> 'Admin Dashboard',
|
|
|
|
'layanan_dpudpa'=>$layanan_dpudpa,
|
|
|
|
'layanan_sempro'=>$layanan_sempro,
|
|
|
|
'layanan_sidangakhir'=>$layanan_sidangakhir,
|
|
|
|
'layanan_revisipublikasi'=>$layanan_revisipublikasi,
|
|
|
|
'layanan_wisuda'=>$layanan_wisuda,
|
|
|
|
]);
|
2024-02-27 22:53:57 +07:00
|
|
|
}
|
|
|
|
|
2024-03-02 18:06:48 +07:00
|
|
|
|
2024-02-27 22:53:57 +07:00
|
|
|
}
|