@extends(siberfx_view('layouts.auth'))

@section('content')
    <div class="page page-center">
        <div class="container container-tight py-4">
            <div class="text-center mb-4 display-6 auth-logo-container">
                {!! siberfx_theme_config('project_logo') !!}
            </div>
            <div class="card">
                <div class="card-header">
                    <ul class="nav nav-tabs card-header-tabs" data-bs-toggle="tabs" role="tablist">
                        <li class="nav-item" role="presentation">
                            <div class="nav-link active" data-bs-toggle="tab" aria-selected="true" role="tab">{{ trans('siberfx::base.step') }} 1 — {{ trans('siberfx::base.confirm_email') }}</div>
                        </li>
                        <li class="nav-item" role="presentation">
                            <div class="nav-link disabled" data-bs-toggle="tab" aria-selected="false" tabindex="-1" role="tab">{{ trans('siberfx::base.step') }} 2</div>
                        </li>
                        <li class="nav-item ms-auto" role="presentation">
                            @includeWhen(siberfx_theme_config('options.showColorModeSwitcher'), siberfx_view('layouts.partials.switch_theme'))
                        </li>
                    </ul>
                </div>
                <div class="card-body">
                    <h3 class="mb-3">{{ trans('siberfx::base.reset_password') }}</h3>
                    <div class="tab-content">
                        <div class="tab-pane active show" id="tabs-home-7" role="tabpanel">
                            @if (session('status'))
                                <div class="alert alert-success mt-3">
                                    {{ session('status') }}
                                </div>
                            @else
                                <form class="col-md-12 p-t-10" role="form" method="POST" action="{{ route('siberfx.auth.password.email') }}">
                                    @csrf
                                    <div class="mb-3">
                                        <label class="form-label" for="email">{{ trans('siberfx::base.email_address') }}</label>
                                        <input autofocus type="email" class="form-control {{ $errors->has('email') ? 'is-invalid' : '' }}" name="email" id="email" value="{{ old('email') }}">
                                        @if ($errors->has('email'))
                                            <div class="invalid-feedback">{{ $errors->first('email') }}</div>
                                        @endif
                                    </div>
                                    <div class="form-footer">
                                        <button type="submit" class="btn btn-primary w-100">
                                            <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
                                                <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
                                                <path d="M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"></path>
                                                <path d="M3 7l9 6l9 -6"></path>
                                            </svg>
                                            {{ trans('siberfx::base.send_reset_link') }}
                                        </button>
                                    </div>
                                </form>
                            @endif
                        </div>
                    </div>
                </div>
            </div>
            <div class="text-center pt-3">
                <a href="{{ route('siberfx.auth.login') }}">{{ trans('siberfx::base.login') }}</a>
                @if (config('siberfx.base.registration_open'))
                    / <a href="{{ route('siberfx.auth.register') }}">{{ trans('siberfx::base.register') }}</a>
                @endif
            </div>
        </div>
    </div>
@endsection
