@@ -7,16 +7,27 @@ use Illuminate\View\Component;
|
||||
|
||||
class AccountStatus extends Component
|
||||
{
|
||||
public $user;
|
||||
public bool
|
||||
$isVerified,
|
||||
$isSuspended,
|
||||
$isLocked,
|
||||
$has2FA,
|
||||
$hasDiscord,
|
||||
$hasPassword;
|
||||
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($userId)
|
||||
public function __construct($isVerified, $isSuspended, $isLocked, $has2FA, $hasDiscord, $hasPassword)
|
||||
{
|
||||
$this->user = User::findOrFail($userId);
|
||||
$this->isVerified = $isVerified;
|
||||
$this->isSuspended = $isSuspended;
|
||||
$this->isLocked = $isLocked;
|
||||
$this->has2FA = $has2FA;
|
||||
$this->hasDiscord = $hasDiscord;
|
||||
$this->hasPassword = $hasPassword;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user