<?php $__env->startSection('title', 'Partner Marketplace'); ?>

<?php $__env->startSection('content'); ?>
    <section class="bg-slate-950 py-14 text-center text-white">
        <p class="text-xs font-bold uppercase tracking-[0.3em] text-gold-400">Epelcon Marketplace</p>
        <h1 class="mt-2 font-serif text-4xl font-bold">Partner properties</h1>
        <p class="mx-auto mt-3 max-w-xl px-4 text-slate-300">Discover trusted hotels, resorts and venues across our network — browse their rooms and spaces, and book with confidence.</p>
    </section>

    <section class="mx-auto max-w-7xl px-4 py-10 sm:px-6">
        <form method="GET" class="mb-6 flex flex-wrap gap-2">
            <input name="q" value="<?php echo e(request('q')); ?>" placeholder="Search by name or city…" class="w-full rounded-xl border-0 bg-white px-4 py-2.5 text-sm shadow-sm ring-1 ring-slate-200 sm:w-64">
            <a href="<?php echo e(route('site.vendors.index')); ?>" class="rounded-full px-4 py-2 text-xs font-bold <?php echo e(! request('type') ? 'bg-slate-950 text-white' : 'bg-white text-slate-600 ring-1 ring-slate-200'); ?>">All</a>
            <?php $__currentLoopData = ['hotel' => 'Hotels', 'restaurant' => 'Restaurants', 'spa' => 'Spas', 'travel' => 'Travel']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $t => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <a href="<?php echo e(route('site.vendors.index', ['type' => $t])); ?>" class="rounded-full px-4 py-2 text-xs font-bold <?php echo e(request('type') === $t ? 'bg-slate-950 text-white' : 'bg-white text-slate-600 ring-1 ring-slate-200'); ?>"><?php echo e($label); ?></a>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </form>

        <div class="grid gap-5 sm:grid-cols-2 lg:grid-cols-3">
            <?php $__empty_1 = true; $__currentLoopData = $vendors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $vendor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <a href="<?php echo e(route('site.vendors.show', $vendor->slug)); ?>" class="group overflow-hidden rounded-3xl bg-white shadow-sm ring-1 ring-slate-200 transition hover:-translate-y-1 hover:shadow-xl">
                    <?php if($vendor->logo): ?>
                        <img src="<?php echo e(asset($vendor->logo)); ?>" alt="<?php echo e($vendor->name); ?>" class="h-40 w-full object-cover">
                    <?php else: ?>
                        <div class="flex h-40 items-center justify-center bg-gradient-to-br from-sky-500 to-indigo-700 text-5xl">🏨</div>
                    <?php endif; ?>
                    <div class="p-6">
                        <div class="flex items-center justify-between">
                            <h2 class="font-serif text-lg font-bold text-slate-900"><?php echo e($vendor->name); ?></h2>
                            <span class="text-xs font-bold text-amber-500">★ <?php echo e($vendor->rating); ?></span>
                        </div>
                        <p class="mt-1 text-sm text-slate-500"><?php echo e($vendor->city); ?><?php echo e($vendor->country ? ', ' . $vendor->country : ''); ?> · <?php echo e(ucfirst($vendor->type)); ?></p>
                        <div class="mt-3 flex gap-3 text-xs font-semibold text-slate-500">
                            <span>🛏 <?php echo e($vendor->rooms_count); ?> rooms</span>
                            <span>✨ <?php echo e($vendor->spaces_count); ?> bookable space<?php echo e($vendor->spaces_count === 1 ? '' : 's'); ?></span>
                        </div>
                        <p class="mt-3 text-sm font-bold text-gold-600 group-hover:underline">View property →</p>
                    </div>
                </a>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <p class="col-span-full rounded-3xl bg-white p-10 text-center text-slate-400 ring-1 ring-slate-200">No partner properties match your search.</p>
            <?php endif; ?>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.site', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\wamp64\www\hms\resources\views/site/vendors/index.blade.php ENDPATH**/ ?>