fix: perbaiki navigasi mobile — semua menu tetap inline seperti referensi

This commit is contained in:
2026-04-03 05:47:18 +07:00
parent 396ecdb489
commit 2a8d8a813c
9 changed files with 413 additions and 216 deletions
+6 -4
View File
@@ -13,10 +13,12 @@ class PublicController extends Controller
public function home()
{
return view('public.home', [
'totalAnggota' => User::where('status', 'aktif')->count(),
'totalDivisi' => Division::count(),
'kegiatan' => Activity::where('status', 'approved')
->latest('start_date')->take(3)->get(),
'totalAnggota' => User::where('status', 'aktif')->count(),
'totalDivisi' => Division::count(),
'totalKegiatan' => Activity::where('status', 'approved')->whereNotNull('executed_at')->count(),
'divisi' => Division::withCount('members')->get(),
'kegiatan' => Activity::where('status', 'approved')->latest('start_date')->take(3)->get(),
'posts' => Post::published()->latest('published_at')->take(2)->get(),
]);
}