@php $route = 'enable'; $needsVerification = session('tab') == '2fa' && $user->needsTwoFactorVerification(); if ($needsVerification) { $route = 'verify'; } elseif ($user->twoFactorEnabled()) { $route = 'disable'; } @endphp