How can I get my COPR and Status back?

Hi I want to ask your help I went to Montana to exit to get my PR and when I get there the officer confiscate my confirmation letter and my other documents and said I’m have no status because he found out some pictures of my girlfriend while I’m getting my family and give me a letter of inadmissal. What can I do to get my PR back and my status.

They don’t give any date to me.

What can I do please help

Can you provide additional details regarding why your COPR was taken and landing refused? What exactly were the officer’s concerns? Did he believe you have a spouse / common law partner even though your COPR states you are single? Or did he have a different concern?