@extends('frontend.user.setting.index') @section('title', __('Phone Verification')) @section('user_setting_content') @php $isVerified = $user->hasVerifiedPhone(); $isEnabled = $user->hasEnabledPhoneVerification(); @endphp @include('frontend.user.setting.partials._security_tabs') @if(empty($user->phone)) @else
{{ $isEnabled ? __('Phone verification is enabled') : __('Phone verification is turned off') }}

{{ __('Use your verified phone as an extra protection layer for sensitive wallet actions like mobile recharge.') }}

{{ $user->phone }} {{ $isVerified ? __('Number verified') : __('Number not verified') }}
{{ $isEnabled ? __('Enabled') : __('Disabled') }}
{{ __('Verify Number') }}

{{ $isVerified ? __('This number has already passed code verification.') : __('Receive a short code on your saved phone number.') }}

{{ __('Protection Switch') }}

{{ $isEnabled ? __('Phone verification is active for protected wallet actions.') : __('Enter the latest code to turn protection on.') }}

@if($isEnabled)
{{ __('Disable Phone Verification') }}

{{ __('Your number will stay verified, but protected actions will stop requiring phone verification until you enable it again.') }}

{{ __('Password Required') }}
@if($errors->has('password')) @endif
@csrf
@else
{{ __('Step 1: Send Code') }}

{{ __('Request a fresh code for :phone.', ['phone' => $user->phone]) }}

@csrf

{{ __('Codes expire quickly, so request a new one only when you are ready to enter it.') }}

{{ __('Step 2: Turn On') }}

{{ __('Enter the latest code to enable phone verification for this account.') }}

@csrf
@endif @endif @endsection @push('styles') @endpush