2021-10-25 02:28:42 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\View\Components;
|
|
|
|
|
|
|
|
use App\User;
|
|
|
|
use Illuminate\View\Component;
|
|
|
|
|
|
|
|
class AccountStatus extends Component
|
|
|
|
{
|
2022-10-24 01:04:22 +01:00
|
|
|
public bool
|
|
|
|
$isVerified,
|
|
|
|
$isSuspended,
|
|
|
|
$isLocked,
|
|
|
|
$has2FA,
|
|
|
|
$hasDiscord,
|
|
|
|
$hasPassword;
|
2021-10-25 02:28:42 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new component instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2022-10-24 01:04:22 +01:00
|
|
|
public function __construct($isVerified, $isSuspended, $isLocked, $has2FA, $hasDiscord, $hasPassword)
|
2021-10-25 02:28:42 +01:00
|
|
|
{
|
2022-10-24 01:04:22 +01:00
|
|
|
$this->isVerified = $isVerified;
|
|
|
|
$this->isSuspended = $isSuspended;
|
|
|
|
$this->isLocked = $isLocked;
|
|
|
|
$this->has2FA = $has2FA;
|
|
|
|
$this->hasDiscord = $hasDiscord;
|
|
|
|
$this->hasPassword = $hasPassword;
|
2021-10-25 02:28:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the view / contents that represent the component.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Contracts\View\View|\Closure|string
|
|
|
|
*/
|
|
|
|
public function render()
|
|
|
|
{
|
|
|
|
return view('components.account-status');
|
|
|
|
}
|
|
|
|
}
|