@extends('frontend.layouts.master')
@section('content')
    <!-- banner-section start -->
    @include('frontend.pages.components.banner', ['pageTitle' => 'Contact Us'])
    <!-- banner-section end -->

    <!-- Contact Form Section start -->
    <section class="apply-for-loan contact">
        <div class="overlay pt-120 pb-120">
            <div class="container wow fadeInUp">
                <div class="row justify-content-center">
                    <div class="col-lg-8">
                        <div class="section-header text-center">
                            <h2 class="title">Get in Touch</h2>
                            <p>Fill out the form and our team will respond within 24 hours.</p>
                        </div>
                    </div>
                </div>
                <div class="row justify-content-center">
                    <div class="col-lg-10">
                        @include('partials.bootstrap_alert')
                        <div class="form-content">
                            <form class="contact-form" id="contact_form_submit" method="POST"
                                action="{{ route('contact.store') }}">
                                @csrf
                                <div class="row gy-4">
                                    <!-- Full Name -->
                                    <div class="col-6">
                                        <div class="form-group">
                                            <label for="surename">Full Name</label>
                                            <input type="text" class="@error('full_name') is-invalid @enderror"
                                                placeholder="Enter your full name" required id="surename" name="full_name"
                                                value="{{ old('full_name') }}">
                                            @error('full_name')
                                                <span class="invalid-feedback d-block">{{ $message }}</span>
                                            @enderror
                                        </div>
                                    </div>

                                    <!-- Phone -->
                                    <div class="col-6">
                                        <div class="form-group">
                                            <label for="phone">Phone Number</label>
                                            <input type="text" class="@error('phone') is-invalid @enderror"
                                                placeholder="Enter your phone number" required id="phone" name="phone"
                                                value="{{ old('phone') }}">
                                            @error('phone')
                                                <span class="invalid-feedback d-block">{{ $message }}</span>
                                            @enderror
                                        </div>
                                    </div>

                                    <!-- Email -->
                                    <div class="col-6">
                                        <div class="form-group">
                                            <label for="email">Email</label>
                                            <input type="email" class="@error('email') is-invalid @enderror"
                                                placeholder="Enter your email" required id="email" name="email"
                                                value="{{ old('email') }}">
                                            @error('email')
                                                <span class="invalid-feedback d-block">{{ $message }}</span>
                                            @enderror
                                        </div>
                                    </div>

                                    <!-- Subject -->
                                    <div class="col-6">
                                        <div class="form-group">
                                            <label for="subject">Subject</label>
                                            <input type="text" class="@error('subject') is-invalid @enderror"
                                                placeholder="Enter the subject" required id="subject" name="subject"
                                                value="{{ old('subject') }}">
                                            @error('subject')
                                                <span class="invalid-feedback d-block">{{ $message }}</span>
                                            @enderror
                                        </div>
                                    </div>

                                    <!-- Message -->
                                    <div class="col-12">
                                        <div class="form-group mb-0">
                                            <label for="message">Message</label>
                                            <textarea class="@error('message') is-invalid @enderror" required id="message" placeholder="Enter your message"
                                                name="message">{{ old('message') }}</textarea>
                                            @error('message')
                                                <span class="invalid-feedback d-block">{{ $message }}</span>
                                            @enderror
                                        </div>
                                    </div>
                                </div>

                                <div class="btn-area text-center">
                                    <button type="submit" class="cmn-btn">Send Message</button>
                                </div>
                            </form>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- Contact Form Section end -->
@endsection
