diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 27ed7d0..a6a1394 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -182,6 +182,7 @@ class UserController extends Controller 'isVerified' => $user->isVerified(), 'isLocked' => $suspensionService->isLocked($user), 'isSuspended' => $suspensionService->isSuspended($user), + 'hasDiscord' => $user->hasDiscordConnection(), 'suspensionReason' => $suspensionService->getSuspensionReason($user), 'suspensionDuration' => $suspensionService->getSuspensionDuration($user), 'has2FA' => $user->has2FA(), diff --git a/app/View/Components/AccountStatus.php b/app/View/Components/AccountStatus.php index 75f2f5e..648834d 100755 --- a/app/View/Components/AccountStatus.php +++ b/app/View/Components/AccountStatus.php @@ -7,25 +7,25 @@ use Illuminate\View\Component; class AccountStatus extends Component { - public bool $isVerified; - - public bool $isSuspended; - - public bool $isLocked; - - public bool $has2FA; + public bool + $isVerified, + $isSuspended, + $isLocked, + $has2FA, + $hasDiscord; /** * Create a new component instance. * * @return void */ - public function __construct($isVerified, $isSuspended, $isLocked, $has2FA) + public function __construct($isVerified, $isSuspended, $isLocked, $has2FA, $hasDiscord) { $this->isVerified = $isVerified; $this->isSuspended = $isSuspended; $this->isLocked = $isLocked; $this->has2FA = $has2FA; + $this->hasDiscord = $hasDiscord; } /** diff --git a/resources/views/components/account-status.blade.php b/resources/views/components/account-status.blade.php index 9920719..a9cff59 100755 --- a/resources/views/components/account-status.blade.php +++ b/resources/views/components/account-status.blade.php @@ -17,6 +17,12 @@ {{ __('Unverified Email') }} @endif + @if($hasDiscord) + {{ __('Connected to Discord') }} + @else + {{ __('Disconnected from Discord') }} + @endif + @if ($has2FA) {{ __('MFA Active') }} @else diff --git a/resources/views/dashboard/user/manage.blade.php b/resources/views/dashboard/user/manage.blade.php index 44a090e..8c3879b 100755 --- a/resources/views/dashboard/user/manage.blade.php +++ b/resources/views/dashboard/user/manage.blade.php @@ -274,7 +274,7 @@
- +
@if($user->hasDiscordConnection())