@@ -1,23 +1,41 @@
|
||||
<span>
|
||||
|
||||
@if ($user->isBanned())
|
||||
@if ($isSuspended)
|
||||
<span class="badge badge-danger ml-2"><i class="fa fa-ban"></i> {{__('Suspended')}}</span>
|
||||
@else
|
||||
<span class="badge badge-success ml-2"><i class="fas fa-check"></i>{{__('Active')}}</span>
|
||||
@endif
|
||||
|
||||
@if (Auth::user()->hasRole('admin'))
|
||||
@if ($user->has2FA())
|
||||
<span class="badge badge-success ml-2"><i class="fas fa-lock"> </i> {{ __('MFA Active') }}</span>
|
||||
@else
|
||||
<span class="badge badge-danger ml-2"><i class="fas fa-lock-open"> </i> {{ __('MFA Inactive') }}</span>
|
||||
@endif
|
||||
@if ($isLocked)
|
||||
<span class="badge badge-warning ml-2"><i class="fas fa-lock"></i> {{ __('Admin locked') }}</span>
|
||||
@endif
|
||||
|
||||
@if(!is_null($user->email_verified_at))
|
||||
<span class="badge badge-success ml-2"><i class="fas fa-check-square"> </i> {{ __('Verified Email') }}</span>
|
||||
@else
|
||||
<span class="badge badge-danger ml-2"><i class="fas fa-exclamation-circle"></i> {{ __('Unverified Email') }}</span>
|
||||
@endif
|
||||
@if($isVerified)
|
||||
<span class="badge badge-success ml-2"><i class="fas fa-check-square"> </i> {{ __('Verified Email') }}</span>
|
||||
@else
|
||||
<span class="badge badge-danger ml-2"><i class="fas fa-exclamation-circle"></i> {{ __('Unverified Email') }}</span>
|
||||
@endif
|
||||
|
||||
@if($hasPassword)
|
||||
<span class="badge badge-info ml-2"><i class="fas fa-key"></i> {{ __('Uses password') }}</span>
|
||||
@elseif($hasDiscord)
|
||||
<span class="badge badge-info ml-2"><i class="fas fa-passport"></i> {{ __('Passwordless signin') }}</span>
|
||||
@else
|
||||
<span class="badge badge-danger ml-2"><i class="fas fa-times"></i> {{ __('No password') }}</span>
|
||||
@endif
|
||||
|
||||
@if($hasDiscord)
|
||||
<span class="badge badge-success ml-2"><i class="fas fa-link"> </i> {{ __('Connected to Discord') }}</span>
|
||||
@else
|
||||
<span class="badge badge-danger ml-2"><i class="fas fa-exclamation-circle"></i> {{ __('Disconnected from Discord') }}</span>
|
||||
@endif
|
||||
|
||||
@if ($has2FA)
|
||||
<span class="badge badge-success ml-2"><i class="fas fa-lock"> </i> {{ __('MFA Active') }}</span>
|
||||
@else
|
||||
<span class="badge badge-danger ml-2"><i class="fas fa-lock-open"> </i> {{ __('MFA Inactive') }}</span>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
</span>
|
||||
|
5
resources/views/components/confirm-password.blade.php
Executable file
5
resources/views/components/confirm-password.blade.php
Executable file
@@ -0,0 +1,5 @@
|
||||
<div class="form-group">
|
||||
<label for="currentPassword">{{ __('Re-enter your password') }}</label>
|
||||
<input class="form-control" autocomplete="current-password" type="password" name="currentPassword" id="currentPassword" required>
|
||||
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> {{ $slot }} <a href="{{ route('password.request') }}">{{ __('Forgot your password?') }}</a></p>
|
||||
</div>
|
9
resources/views/components/confirm-second-factor.blade.php
Executable file
9
resources/views/components/confirm-second-factor.blade.php
Executable file
@@ -0,0 +1,9 @@
|
||||
@if (Auth::user()->has2FA())
|
||||
<div class="form-group mt-5">
|
||||
|
||||
<label for="otp">{{ __('Two-factor authentication code') }}</label>
|
||||
<input type="text" id="otp" name="otp" class="form-control">
|
||||
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> {{ $slot }}</p>
|
||||
|
||||
</div>
|
||||
@endif
|
@@ -14,10 +14,10 @@
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
{{ $modalFooter }}
|
||||
{{ $modalFooter ?? '' }}
|
||||
|
||||
@if ($includeCloseButton == true)
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{__('messages.modal_close')}}</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{__('Close')}}</button>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user