@extends('frontend::layouts.auth')
@section('title')
    {{ __('Forgot password') }}
@endsection
@section('content')
    <!-- Forget password area start -->
    <div class="td-authentication">
        <div class="container">
            <div class="td-authentication-box">
                <a href="{{ route('home') }}" class="td-authentication-box-logo">
                    <img class="td-authentication-box-logo-img" src="{{ asset(setting('site_logo')) }}" alt="">
                </a>
                <div class="row g-4 g-lg-5">
                    <div class="col-md-6 td-authentication-left">
                        <div class="td-authentication-left-box td-authentication-left-box-3">
                            <h2>{{ $data['title'] }}</h2>
                            <form class="td-authentication-left-box-forms common-form" method="POST"
                                action="{{ route('password.email') }}">
                                @csrf
                                <div class="row g-2 g-lg-3">
                                    <div class="col-lg-12">
                                        <div class="form-floating common-form-item">
                                            <input type="email" class="form-control" id="floatingInput"
                                                placeholder="Email" name="email" value="{{ old('email') }}" required>
                                            <label for="floatingInput">{{ __('Email') }}</label>
                                        </div>
                                    </div>
                                </div>
                                <div class="td-authentication-left-box-forms-button">
                                    <button class="td-btn td-btn-fullWidth">
                                        <span class="td-btn-wrap">
                                            <span class="td-btn-y-1">{{ __('Send Rest Link') }}</span>
                                            <span class="td-btn-y-2">{{ __('Send Rest Link') }}</span>
                                        </span>
                                        <i></i>
                                    </button>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="col-md-6 td-authentication-right">
                        <div class="td-authentication-right-box">
                            <div class="swiper myAuthSwipper">
                                <div class="swiper-wrapper">
                                    <?php
                                    $landingContents = \App\Models\LandingContent::where('type', 'login')
                                        ->where('locale', app()->getLocale())
                                        ->get();
                                    ?>
                                    @foreach ($landingContents as $content)
                                        <div class="swiper-slide">
                                            <div class="clipped-image">
                                                <img src="{{ asset($content->photo) }}" alt="Clipped Image">
                                                <div class="clipped-image-text">
                                                    <h2>{{ $content->title }}</h2>
                                                </div>
                                            </div>
                                        </div>
                                    @endforeach

                                </div>
                                <div class="swiper-pagination"></div>
                            </div>
                            <div class="td-authentication-right-box-circle"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="td-authentication-circle"></div>
        <div class="td-authentication-bottom">
            <img src="{{ asset('frontend/default/img/authentication/auth-bottom-element.svg') }}" alt="">
        </div>
        <div class="td-authentication-top">
            <img src="{{ asset('frontend/default/img/authentication/auth-top-element.svg') }}" alt="">
        </div>
    </div>
    <!-- Forget password area end -->
@endsection
