athenahr/app/View/Components/AccountStatus.php
miguel456 b276cea917
feat: add discord account indicator
Signed-off-by: miguel456 <me@nogueira.codes>
2022-10-21 07:39:35 +01:00

41 lines
865 B
PHP
Executable File

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