check() && auth()->user()->role === 'bk') { return $next($request); } return redirect('/dashboard')->with('error', 'Anda tidak memiliki akses ke panel BK.'); } }