@extends('layouts.app')

@section('title')
    AhayTravel
@endsection

@section('content')
       <!-- Header -->
       <header class="text-center">
        <h1>Explore The Beautiful World
            <br>
            As Easy One Click
        </h1>
        <p class="mt-3">You will see Beautiful
            <br>
            moment you never see before
        </p>
        <a href="#popular" class="btn btn-getstarted px-4 mt-4">Get Started</a>
    </header>
    <main>
        <div class="container">
            <section class="sectionstats row justify-content-center"id="stats">
                <div class="col-3 col-md-2 stats-detail">
                    <h2>20k</h2>
                    <p>Members</p>
                </div>
                <div class="col-3 col-md-2 stats-detail">
                    <h2>12</h2>
                    <p>Countries</p>
                </div>
                <div class="col-3 col-md-2 stats-detail">
                    <h2>3k</h2>
                    <p>Hotels</p>
                </div>
                <div class="col-3 col-md-2 stats-detail">
                    <h2>72</h2>
                    <p>Partners</p>
                </div>
            </section>
        </div>

        <section class="sectionpopular" id="popular">
            <div class="container">
                <div class="row">
                    <div class="col text-center section-popular-heading">
                        <h2>Wisata Popular</h2>
                        <p>
                            Something that you never try
                            <br>
                            before in this world
                        </p>
                    </div>
                </div>
            </div>
        
        </section>
        <section class="section-popular-content" id="popularcontent">
                <div class="container">
                    <div class="section-popular-travel row justify-content-center">
                        @foreach ($items as $item)
                        <div class="col-sm-6 col-md-4 col-lg-3">
                            <div class="card-travel text-center d-flex flex-column" style="background-image: url(/ahaytravel{{ $item->galleries->count() ? Storage::url($item->galleries->first()->image) : '' }});">
                                
                                <div class="travel-country">{{ $item->title }}</div>
                                <div class="travel-location">{{ $item->location }}</div>
                                <div class="travel-button mt-auto">
                                    <a href="{{ route('detail', $item->slug)}}" class="btn btn-travel-details px-4">
                                        View Details
                                    </a>
                                    </div>
                                </div>
                        </div>
                        @endforeach
                    </div>
                </div>
        </section>

        <section class="section-networks" id="networs">
            <div class="container">
                <div class="row">
                    <div class="col-md-4">
                        <h2>Our Networks</h2>
                        <p>Companies are trusted us
                            <br>
                            more than just a trip
                        </p>
                    </div>
                    <div class="col-md-8 text-center">
                        <img src="frontend/images/partner.png" alt="Logo Partner" class="img-partner">
                    </div>
                </div>
            </div>
        </section>

        <section class="section-testimonial-heading" id="testimonialheading">
            <div class="container">
                <div class="row">
                    <div class="col text-center">
                        <h2>They are loving us</h2>
                        <p>Moments were giving them
                            <br>
                            the best experience
                        </p>
                    </div>
                </div>
            </div>
        </section>

        <section class="section-testimonial-content" id="testimonialcontent">
            <div class="container">
                <div class="section-popular-travel row justify-content-center">
                    <div class="col-sm-6 col-md-6 col-lg-4">
                        <div class="card card-testimonial text-center">
                            <div class="testimonial-content">
                                <img src="frontend/images/testi.png" alt="user" class="mb-4 rounded-circle">
                                <h3 class="mb-4">Roihan Akbar</h3>
                                <p class="testimonial">
                                    “It was glorious and I could not to say wohooo for every single moments Dankeeee”
                                </p>
                            </div>
                            <hr>
                            <p class="trip-to mt-2">
                                Trip to Teluk Tamiang
                            </p>
                        </div>
                    </div>
                        <div class="col-sm-6 col-md-6 col-lg-4">
                            <div class="card card-testimonial text-center">
                                <div class="testimonial-content">
                                    <img src="frontend/images/testi2.png" alt="user" class="mb-4 rounded-circle">
                                    <h3 class="mb-4">Syahmardian</h3>
                                    <p class="testimonial">
                                        ”The trip was amazing and I saw something beautiful in that island that makes me want to learn more”
                                    </p>
                                </div>
                                <hr>
                                <p class="trip-to mt-2">
                                    Trip to Air Terjun Haratai
                                </p>
                            </div>
                        </div>
                            <div class="col-sm-6 col-md-6 col-lg-4">
                                <div class="card card-testimonial text-center">
                                    <div class="testimonial-content">
                                        <img src="frontend/images/testi.png" alt="user" class="mb-4 rounded-circle">
                                        <h3 class="mb-4">Safaro</h3>
                                        <p class="testimonial">
                                            “It was glorious and I could not to say wohooo for every single moments Dankeeee”
                                        </p>
                                    </div>
                                    <hr>
                                    <p class="trip-to mt-2">
                                        Trip to Teluk Tamiang
                                    </p>
                                </div>
                            </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-12 text-center">
                <a href="#" class="btn btn-need-help px-4 mt-4 mx-1">
                    I Need Help
                </a>
                <a href="{{ route('register')}}" class="btn btn-get-started px-4 mt-4 mx-1">
                    Get Started
                </a>
            </div>
        </div>
    </div>
    </section>
    </main>
@endsection