Commit fe0db369 by Siti Aisah

fix dashboard jumlah usulan

parent 6331cb46
......@@ -3,6 +3,7 @@
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\VPengusul;
use Illuminate\Support\Facades\DB;
class DashboardController extends Controller
......@@ -14,7 +15,7 @@ public function index() {
->groupBy("id_kategori")
->pluck('jumlah','id_kategori');
$semua = DB::table('bantuan_pengusul')->count();
$semua = VPengusul::count();
$sudah = DB::table('tr_pengajuan')->count();
$data['sudah'] = $sudah;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment