<human>: Can you give me a shortened version of the text?

Boyfriend of nine months. I'll keep this simple. My boyfriend has depression and anxiety. He did cognitive behavioral therapy and is on antidepressants. 

He's got a much better hold on it now than before he got help. But he still has occasional panic attacks and anxiety attacks. Or, he will even just have days where he is just very anxious. 

He goes through these illogical thought loops where he will just keep ruminating on the same problem over and over. Like, he has an issue, we will talk about it, and then we will start talking about something else, but he will still somehow end up back at the issue and keep bringing it up / dwelling on it. 

I've never had any experience with this sort of thing before, and I care about him a lot, so I was wondering if anybody here has any advice for me on how to best be there for him.
<bot>: My boyfriend, though he is getting treatment, occasionally suffers from anxiety and panic attacks. I was wondering how to better help him and be there for him when they happen.