@extends($activeTemplate .'layouts.frontend')
@section('content')

<section class="account py-60">
    <div class="account-inner">
        <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 Email Address')</h5>
                        <form action="{{route('user.verify.email')}}" method="POST" class="submit-form">
                            @csrf
                            <p class="verification-text">@lang('A 6 digit verification code sent to your email address'): {{
                                showEmailAddress(auth()->user()->email) }}</p>

                            @include($activeTemplate.'partials.verification_code')

                            <div class="mb-3">
                                <button type="submit" class="btn btn--base w-100 btn--md">@lang('Submit')</button>
                            </div>

                            <div class="mb-3">
                                <p>
                                    @lang('If you don\'t get any code'), <a href="{{route('user.send.verify.code', 'email')}}">
                                        @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>

</section>

@endsection

@push('style')
    <style>
        .verification-code-wrapper {
            border-radius: 26px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid hsl(var(--base) / 0.2);
        }

        .verification-code span {
            background: hsl(var(--dark)/0.7) !important;
            border: none;
        }

        .verification-code input{
            color: hsl(var(--white)) !important;
        }
    </style>
@endpush
