@extends($activeTemplate .'layouts.frontend')
@section('content')
<div class="pt-120 pb-120 bg--light">
    <div class="container">
        <div class="d-flex justify-content-center">
            <div class="verification-code-wrapper"> 
                <div class="verification-area">
                    <h5 class="pb-3 text-center border-bottom">@lang('Verify Mobile Number')</h5>
                    <form action="{{route('user.verify.mobile')}}" method="POST" class="submit-form">
                        @csrf
                        <p class="verification-text text--dark">
                            @lang('A 6 digit verification code sent to your mobile number'):  +{{ showMobileNumber(auth()->user()->mobile) }}
                        </p>
      
                        @include($activeTemplate.'partials.verification_code')
    
                        <div class="mb-3">
                            <button type="submit" class="btn btn--base w-100">@lang('Submit')</button>
                        </div>
    
                        <div class="mb-2"> 
                            <p>
                                @lang('If you don\'t get any code'), <a href="{{route('user.send.verify.code', 'phone')}}" class="text--base"> @lang('Try again')</a>
                            </p>
                            @if($errors->has('resend'))
                                <small class="text--danger d-block">{{ $errors->first('resend') }}</small>
                            @endif
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
