@php use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Auth; // Cek apakah user sudah login if (!Auth::check()) { // Redirect ke halaman login jika belum login header('Location: ' . route('login.user')); exit(); } $configData = Helper::appClasses(); $user = Auth::user(); // Mengambil user yang sedang login @endphp