They should have valid residence permits until the estimated date of return and if they surpass 6 months. Keep copies of their passports and RPs then take an application from airport immigration, fill them up and pay Qr 500 for each pax. Get the return visa, send it to them (make sure they don't exceed 1 year outside Qatar)