<?php $__env->startSection('title', 'Beranda - Website Desa Cemara'); ?>

<?php $__env->startSection('content'); ?>

<!-- Banner Slider Section -->
<section class="relative w-full h-[480px] overflow-hidden bg-gray-900" x-data="{
        currentSlide: 0,
        banners: <?php echo e($banners->count()); ?>,
        init() {
            if (this.banners > 1) {
                // Auto-slide every 5 seconds
                setInterval(() => {
                    this.goToSlide(this.currentSlide + 1);
                }, 6000);
            }
        },
        goToSlide(index) {
            // Logic for looping slides
            this.currentSlide = (index + this.banners) % this.banners;
        }
    }" x-init="init">
    <?php if($banners->count() > 0): ?>
    <div class="slider-container relative w-full h-full">
        <?php $__currentLoopData = $banners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $banner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="slide absolute w-full h-full transition-opacity duration-700 ease-in-out"
            :class="{
                            'opacity-100 z-10': <?php echo e($index); ?> === currentSlide,
                            'opacity-0 z-0': <?php echo e($index); ?> !== currentSlide
                        }">

            <img src="<?php echo e(asset('storage/' . $banner->image)); ?>" alt="<?php echo e($banner->title); ?>"
                class="w-full h-full object-cover">

            <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent"></div>

            <div class="absolute bottom-0 left-0 right-0 p-6 md:p-12 lg:p-16">
                <div class="max-w-7xl mx-auto">
                    <h2
                        class="text-2xl md:text-2xl lg:text-4xl font-bold text-gray-200 drop-shadow-2xl leading-tight">
                        <?php echo e($banner->title); ?>

                    </h2>
                </div>
            </div>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>

    <?php if($banners->count() > 1): ?>
    <button @click="goToSlide(currentSlide - 1)"
        class="absolute left-4 md:left-8 top-1/2 -translate-y-1/2 bg-white/20 hover:bg-white/40 text-white p-3 md:p-4 rounded-full transition-all duration-300 backdrop-blur-sm z-20 group">
        <svg class="w-5 h-5 md:w-6 md:h-6 group-hover:scale-110 transition-transform" fill="none"
            stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
        </svg>
    </button>
    <button @click="goToSlide(currentSlide + 1)"
        class="absolute right-4 md:right-8 top-1/2 -translate-y-1/2 bg-white/20 hover:bg-white/40 text-white p-3 md:p-4 rounded-full transition-all duration-300 backdrop-blur-sm z-20 group">
        <svg class="w-5 h-5 md:w-6 md:h-6 group-hover:scale-110 transition-transform" fill="none"
            stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
        </svg>
    </button>

    <div class="absolute bottom-4 md:bottom-6 left-1/2 -translate-x-1/2 flex gap-2 md:gap-3 z-20">
        <?php $__currentLoopData = $banners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $banner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <button @click="goToSlide(<?php echo e($index); ?>)"
            :class="{
                                'bg-white w-8 md:w-10': <?php echo e($index); ?> === currentSlide,
                                'bg-white/50 hover:bg-white/75': <?php echo e($index); ?> !== currentSlide
                            }"
            class="w-2 h-2 md:w-3 md:h-3 rounded-full transition-all duration-300"
            aria-label="Go to slide <?php echo e($index + 1); ?>">
        </button>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
    <?php endif; ?>
    <?php else: ?>
    <div class="relative w-full h-full flex flex-col items-center justify-center text-center px-4">
        <img src="<?php echo e(asset('images/kantor-desa-panoramic.jpg')); ?>" alt="Desa Cemara" class="absolute inset-0 w-full h-full object-cover">
        <div class="absolute inset-0 bg-black/30"></div>
        <div class="relative z-10 text-center">
            <h2 class="text-3xl md:text-5xl font-bold text-white mb-4 drop-shadow-md">Selamat Datang di Desa Cemara</h2>
            <p class="text-xl text-gray-200 max-w-3xl mx-auto drop-shadow-md">Website Resmi Pemerintah Desa Cemara</p>
        </div>
    </div>
    <?php endif; ?>
</section>

<!-- About Section -->
<section id="about" class="py-15 bg-white">
    <div class="container mx-auto px-4">
        <div class="text-center mb-12">
            <h2 class="text-3xl md:text-4xl font-bold text-gray-800 mb-4">Tentang Desa Cemara</h2>
            <p class="text-gray-600 max-w-2xl mx-auto">Desa Cemara adalah desa yang asri dan hijau, dikelilingi oleh alam yang indah serta masyarakat yang ramah dan bergotong royong</p>
        </div>

        
        <div class="mb-10 rounded-xl overflow-hidden shadow-lg">
            <img src="<?php echo e(asset('images/hero-desa.png')); ?>" alt="Desa Cemara" class="w-full h-64 md:h-80 object-cover hover:scale-[1.02] transition-transform duration-700">
        </div>

        <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
            <div class="bg-gray-50 p-6 rounded-lg shadow-sm hover:shadow-md transition duration-300">
                <div class="text-blue-600 text-3xl mb-4">
                    <i class="fas fa-users"></i>
                </div>
                <h3 class="text-xl font-semibold mb-2">Populasi</h3>
                <p class="text-gray-600">805 jiwa penduduk</p>
            </div>

            <div class="bg-gray-50 p-6 rounded-lg shadow-sm hover:shadow-md transition duration-300">
                <div class="text-green-600 text-3xl mb-4">
                    <i class="fas fa-map-marked-alt"></i>
                </div>
                <h3 class="text-xl font-semibold mb-2">Luas Wilayah</h3>
                <p class="text-gray-600">Memiliki luas wilayah sebesar 662,00 Ha</p>
            </div>

            <div class="bg-gray-50 p-6 rounded-lg shadow-sm hover:shadow-md transition duration-300">
                <div class="text-yellow-600 text-3xl mb-4">
                    <i class="fas fa-home"></i>
                </div>
                <h3 class="text-xl font-semibold mb-2">Jumlah Rumah Tangga</h3>
                <p class="text-gray-600">Terdiri dari 252 rumah tangga di Desa Cemara</p>
            </div>
        </div>
    </div>
</section>

<!-- Vision Mission Section -->
<section class="py-4 bg-gray-50">
    <div class="container mx-auto px-4">
        <div class="text-center mb-12">
            <h2 class="text-3xl md:text-4xl font-bold text-gray-800 mb-4">Visi dan Misi Desa</h2>
            <p class="text-gray-600 max-w-2xl mx-auto">Membangun desa yang sejahtera, mandiri, berbudaya dan memiliki
                daya saing</p>
        </div>

        
        <div class="mb-10 rounded-xl overflow-hidden shadow-md">
            <img src="<?php echo e(asset('images/sejarah-desa.png')); ?>" alt="Kegiatan Masyarakat Desa Cemara" class="w-full h-56 md:h-72 object-cover">
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 gap-10">
            <div class="bg-white p-8 rounded-lg shadow-md">
                <h3 class="text-2xl font-bold text-blue-600 mb-4 flex items-center">
                    <i class="fas fa-eye mr-2"></i> Visi Desa
                </h3>
                <p class="text-gray-700 leading-relaxed">
                    Menjadi desa wisata yang unggul dalam bidang pertanian organik, pelestarian lingkungan, dan
                    pengembangan pariwisata berbasis budaya lokal.
                </p>
            </div>

            <div class="bg-white p-8 rounded-lg shadow-md">
                <h3 class="text-2xl font-bold text-green-600 mb-4 flex items-center">
                    <i class="fas fa-bullseye mr-2"></i> Misi Desa
                </h3>
                <ul class="space-y-3 text-gray-700">
                    <li class="flex items-start">
                        <span class="text-green-500 mr-2"><i class="fas fa-check-circle"></i></span>
                        Mengembangkan pertanian organik sebagai sumber pendapatan utama
                    </li>
                    <li class="flex items-start">
                        <span class="text-green-500 mr-2"><i class="fas fa-check-circle"></i></span>
                        Melestarikan warisan budaya dan adat istiadat setempat
                    </li>
                    <li class="flex items-start">
                        <span class="text-green-500 mr-2"><i class="fas fa-check-circle"></i></span>
                        Meningkatkan kualitas infrastruktur dan fasilitas umum
                    </li>
                    <li class="flex items-start">
                        <span class="text-green-500 mr-2"><i class="fas fa-check-circle"></i></span>
                        Mendorong partisipasi masyarakat dalam pembangunan desa
                    </li>
                </ul>
            </div>
        </div>
    </div>
</section>

<!-- Map Section -->
<section class="py-16 bg-white">
    <div class="container mx-auto px-4">
        <div class="text-center mb-12">
            <h2 class="text-3xl md:text-4xl font-bold text-gray-800 mb-4">Lokasi Desa Cemara</h2>
            <p class="text-gray-600 max-w-2xl mx-auto">Temukan lokasi pasti Desa Cemara di bawah ini</p>
        </div>

        <div class="max-w-4xl mx-auto">
            <div class="aspect-w-16 aspect-h-9 bg-gray-200 rounded-lg overflow-hidden">
                <iframe
                    src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d15814.77093245451!2d113.713333!3d-7.808333!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x2e7d25e01a1db9ef%3A0x6b8ec523d40fe444!2sCemara%2C%20Suboh%2C%20Situbondo%20Regency%2C%20East%20Java!5e0!3m2!1sid!2sid!4v1719280000000!5m2!1sid!2sid"
                    width="1000" height="450" style="border:0;" allowfullscreen="" loading="lazy"
                    referrerpolicy="no-referrer-when-downgrade" class="w-full h-[450px]">
                </iframe>
            </div>
        </div>
    </div>
</section>

<!-- Gallery Section -->
<section class="py-2 bg-gray-50">
    <div class="container mx-auto px-4">
        <div class="text-center mb-12">
            <h2 class="text-3xl md:text-4xl font-bold text-gray-800 mb-4">Galeri Desa Cemara</h2>
            <p class="text-gray-600 max-w-2xl mx-auto">Dokumentasi agenda dan kegiatan Desa Cemara</p>
        </div>

        <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">


            <?php $__currentLoopData = $banners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $banner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>


            <div class="overflow-hidden rounded-lg shadow-md hover:shadow-lg transition duration-300">
                <img src="<?php echo e(asset('storage/' . $banner->image)); ?>" alt="<?php echo e($banner->title); ?>" class="w-full h-48 object-cover">
            </div>

            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

        </div>
    </div>
</section>

<!-- Contact Section -->
<section class="py-10 bg-white">
    <div class="container mx-auto px-4">
        <div class="text-center mb-12">
            <h2 class="text-3xl md:text-4xl font-bold text-gray-800 mb-4">Hubungi Kami</h2>
            <p class="text-gray-600 max-w-2xl mx-auto">Anda memiliki pertanyaan? Hubungi kami melalui kontak di bawah
            </p>
        </div>

        <div class="max-w-2xl mx-auto bg-gray-50 p-8 rounded-lg shadow-md">
            <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
                <div class="flex items-center space-x-3">
                    <div class="bg-blue-100 p-3 rounded-full">
                        <i class="fas fa-map-marker-alt text-blue-600"></i>
                    </div>
                    <div>
                        <h4 class="font-semibold text-gray-800">Alamat</h4>
                        <p class="text-gray-600">Jl. Moh. Saleh No. 1, Dusun Krajan, Desa Cemara, Kec. Suboh, Kab. Situbondo, Jawa Timur 68354</p>
                    </div>
                </div>

                <div class="flex items-center space-x-3">
                    <div class="bg-green-100 p-3 rounded-full">
                        <i class="fas fa-phone-alt text-green-600"></i>
                    </div>
                    <div>
                        <h4 class="font-semibold text-gray-800">Telepon</h4>
                        <p class="text-gray-600">(022) 123-4567</p>
                    </div>
                </div>

                <div class="flex items-center space-x-3">
                    <div class="bg-purple-100 p-3 rounded-full">
                        <i class="fas fa-envelope text-purple-600"></i>
                    </div>
                    <div>
                        <h4 class="font-semibold text-gray-800">Email</h4>
                        <p class="text-gray-600">info@desacemara.desa.id</p>
                    </div>
                </div>

                <div class="flex items-center space-x-3">
                    <div class="bg-orange-100 p-3 rounded-full">
                        <i class="fas fa-clock text-orange-600"></i>
                    </div>
                    <div>
                        <h4 class="font-semibold text-gray-800">Jam Operasional</h4>
                        <p class="text-gray-600">Senin - Jumat: 08:00 - 16:00</p>
                    </div>
                </div>
            </div>

            <form class="space-y-4" action="<?php echo e(route('contact.store')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                    <input type="text" name="nama" placeholder="Nama Lengkap" required
                        class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <input type="email" name="email" placeholder="Email" required
                        class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                </div>
                <input type="text" name="subjek" placeholder="Subjek"
                    class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                <textarea rows="4" name="pesan" placeholder="Pesan Anda" required
                    class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"></textarea>
                <button type="submit"
                    class="w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-4 rounded-md transition duration-300">
                    Kirim Pesan
                </button>
            </form>

        </div>
    </div>
</section>

<!-- Footer -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\web desa\sisteminformasi-desa-laravel-blade-main\resources\views/pages/homepage.blade.php ENDPATH**/ ?>