check() || auth()->user()->role !== 'admin') { return redirect('/')->with('error', 'Anda tidak memiliki akses admin.'); } return $next($request); } }