user() ->automationRules() ->with(['category:id,name,icon,color', 'labels:id,name,color']) ->orderBy('priority') ->get(); return response()->json($rules); } }