athenahr/app/View/Components/AccountStatus.php
miguel456 b89d71b371
Revert "Revert "merge 1""
This reverts commit 0c463d1f10145bf99dd63fd7128f992ab2371ffb.
2022-10-24 01:04:22 +01:00

43 lines
944 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,
$hasPassword;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct($isVerified, $isSuspended, $isLocked, $has2FA, $hasDiscord, $hasPassword)
{
$this->isVerified = $isVerified;
$this->isSuspended = $isSuspended;
$this->isLocked = $isLocked;
$this->has2FA = $has2FA;
$this->hasDiscord = $hasDiscord;
$this->hasPassword = $hasPassword;
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
return view('components.account-status');
}
}