@php use App\Livewire\User\TwoFactorAuthentication as CustomTwoFactorAuthentication; use Stephenjude\FilamentTwoFactorAuthentication\Livewire\PasskeyAuthentication; use Stephenjude\FilamentTwoFactorAuthentication\TwoFactorAuthenticationPlugin; $plugin = TwoFactorAuthenticationPlugin::get(); /** @var \Filament\Models\Contracts\FilamentUser $user */ $user = filament()->auth()->user(); @endphp @if($plugin->hasEnabledTwoFactorAuthentication()) @livewire(CustomTwoFactorAuthentication::class, ['aside' => false, 'redirectTo' => filament()->getCurrentPanel()->getProfileUrl()]) @endif @if($plugin->hasEnabledPasskeyAuthentication()) @livewire(PasskeyAuthentication::class, ['aside' => false]) @endif
@if( !$plugin->hasForcedTwoFactorSetup() || $user->hasEnabledTwoFactorAuthentication() ) {{__('filament-two-factor-authentication::section.dashboard')}} @else @endif