main
Ilham Wara Nugroho 2026-02-02 13:12:50 +07:00
parent 7507aa4026
commit 60dafd5622
1 changed files with 2 additions and 1 deletions

View File

@ -6,13 +6,14 @@ use Illuminate\Http\Request;
use App\Models\Konten\Kegiatan;
use App\Models\Kuesioner;
use App\Models\ProfileSekolah;
use App\Models\User;
class FrontController extends Controller
{
function index() {
$data['side_kegiatan'] = Kegiatan::orderBy('KegiatanId','DESC')->limit(3)->get();
$data['kegiatan'] = Kegiatan::orderBy('KegiatanId','DESC')->limit(8)->get();
$data['sekolah'] = ProfileSekolah::count();
$data['sekolah'] = User::where('ms_group_id',2)->groupBy('username')->count();
$data['usulan'] = [
// 'kota' => Kuesioner::where('level',0)->where('tahun',date('Y'))->count(),
// 'provinsi' => Kuesioner::where('level',1)->where('tahun',date('Y'))->count(),