<?php

namespace App\Support;

use App\User;

class OwnerRegistration
{
    const DISABLED_MESSAGE = 'Phiên bản ITRO cũ không còn hỗ trợ đăng ký tài khoản chủ nhà mới. Vui lòng đăng ký trên nền tảng resident.vn';
    const RESIDENT_SIGNUP_URL = 'https://app.resident.vn/auth/signup';

    public static function isDisabled($type)
    {
        return (int) $type === User::OWNER;
    }

    public static function disabledResponse()
    {
        return response([
            'status' => 0,
            'message' => self::DISABLED_MESSAGE,
            'url' => self::RESIDENT_SIGNUP_URL
        ]);
    }
}
