<?php $__env->startSection('title', $room->name . ' - Hotel Bardan Boutique'); ?>

<?php $__env->startSection('content'); ?>
<!-- Room Images Gallery -->
<section class="pt-8">
    <div class="container-custom">
        <div class="swiper room-detail-swiper rounded-2xl overflow-hidden shadow-xl h-96 md:h-[500px]">
            <div class="swiper-wrapper">
                <?php if($room->images && count($room->images) > 0): ?>
                    <?php $__currentLoopData = $room->images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $image): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="swiper-slide">
                        <img src="<?php echo e($image); ?>" alt="<?php echo e($room->name); ?>" class="w-full h-96 md:h-[500px] object-cover">
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php else: ?>
                    <div class="swiper-slide">
                        <img src="<?php echo e($room->image); ?>" alt="<?php echo e($room->name); ?>" class="w-full h-96 md:h-[500px] object-cover">
                    </div>
                <?php endif; ?>
            </div>
            <div class="swiper-button-prev"></div>
            <div class="swiper-button-next"></div>
            <div class="swiper-pagination"></div>
        </div>
    </div>
</section>

<!-- Room Details -->
<section class="py-12">
    <div class="container-custom">
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
            <!-- Main Content -->
            <div class="lg:col-span-2" data-aos="fade-right">
                <!-- Room Header -->
                <div class="mb-8">
                    <h1 class="text-4xl md:text-5xl font-display font-bold mb-4"><?php echo e($room->name); ?></h1>
                    <div class="flex items-center gap-4 text-gray-600 mb-4">
                        <span class="flex items-center gap-2">
                            <svg class="w-5 h-5 text-primary-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"/>
                            </svg>
                            <span><?php echo e($room->max_adults); ?> Adults</span>
                        </span>
                        <span class="flex items-center gap-2">
                            <svg class="w-5 h-5 text-primary-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"/>
                            </svg>
                            <span><?php echo e($room->room_size); ?></span>
                        </span>
                        <span class="flex items-center gap-2">
                            <svg class="w-5 h-5 text-primary-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"/>
                            </svg>
                            <span><?php echo e($room->bed_type); ?></span>
                        </span>
                    </div>
                    <p class="text-lg text-gray-600 leading-relaxed"><?php echo e($room->description); ?></p>
                </div>
                
                <!-- Amenities -->
                <?php if($room->amenities && count($room->amenities) > 0): ?>
                <div class="mb-8">
                    <h2 class="text-2xl font-display font-bold mb-6">Room Amenities</h2>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <?php $__currentLoopData = $room->amenities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $amenity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="flex items-center gap-3 bg-gray-50 p-4 rounded-lg">
                            <svg class="w-6 h-6 text-primary-600 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/>
                            </svg>
                            <span class="text-gray-700"><?php echo e($amenity); ?></span>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
                <?php endif; ?>
                
                <!-- Room Policies -->
                <div class="bg-blue-50 border-l-4 border-blue-500 p-6 rounded-lg">
                    <h3 class="text-xl font-display font-bold mb-4 text-blue-900">Room Policies</h3>
                    <ul class="space-y-2 text-blue-800">
                        <li class="flex items-start gap-2">
                            <svg class="w-5 h-5 mt-0.5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20">
                                <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/>
                            </svg>
                            <span>Check-in: 2:00 PM | Check-out: 12:00 PM</span>
                        </li>
                        <li class="flex items-start gap-2">
                            <svg class="w-5 h-5 mt-0.5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20">
                                <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/>
                            </svg>
                            <span>Free cancellation up to 24 hours before check-in</span>
                        </li>
                        <li class="flex items-start gap-2">
                            <svg class="w-5 h-5 mt-0.5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20">
                                <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/>
                            </svg>
                            <span>Maximum occupancy: <?php echo e($room->max_adults); ?> adults, <?php echo e($room->max_children); ?> children</span>
                        </li>
                        <li class="flex items-start gap-2">
                            <svg class="w-5 h-5 mt-0.5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20">
                                <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/>
                            </svg>
                            <span>Pets are not allowed</span>
                        </li>
                        <li class="flex items-start gap-2">
                            <svg class="w-5 h-5 mt-0.5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20">
                                <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/>
                            </svg>
                            <span>Smoking is not permitted in rooms</span>
                        </li>
                    </ul>
                </div>
            </div>
            
            <!-- Booking Sidebar -->
            <div class="lg:col-span-1" data-aos="fade-left">
                <div class="bg-white rounded-2xl shadow-xl p-6 sticky top-24">
                    <div class="text-center mb-6">
                        <div class="text-4xl font-display font-bold text-primary-600 mb-2">
                            NPR <?php echo e(number_format($room->price_per_night)); ?>

                        </div>
                        <p class="text-gray-600">per night</p>
                    </div>
                    
                    <!-- Booking Form -->
                    <form action="<?php echo e(route('booking.reserve')); ?>" method="POST" class="space-y-4 needs-validation">
                        <?php echo csrf_field(); ?>
                        <input type="hidden" name="room_id" value="<?php echo e($room->id); ?>">
                        
                        <div>
                            <label for="check_in" class="form-label">Check In</label>
                            <input type="date" id="check_in" name="check_in" class="form-input" required>
                        </div>
                        
                        <div>
                            <label for="check_out" class="form-label">Check Out</label>
                            <input type="date" id="check_out" name="check_out" class="form-input" required>
                        </div>
                        
                        <div>
                            <label for="adults" class="form-label">Adults</label>
                            <select id="adults" name="adults" class="form-input" required>
                                <?php for($i = 1; $i <= $room->max_adults; $i++): ?>
                                <option value="<?php echo e($i); ?>" <?php echo e($i == 2 ? 'selected' : ''); ?>><?php echo e($i); ?> Adult<?php echo e($i > 1 ? 's' : ''); ?></option>
                                <?php endfor; ?>
                            </select>
                        </div>
                        
                        <?php if($room->max_children > 0): ?>
                        <div>
                            <label for="children" class="form-label">Children</label>
                            <select id="children" name="children" class="form-input">
                                <?php for($i = 0; $i <= $room->max_children; $i++): ?>
                                <option value="<?php echo e($i); ?>"><?php echo e($i); ?> <?php echo e($i == 1 ? 'Child' : 'Children'); ?></option>
                                <?php endfor; ?>
                            </select>
                        </div>
                        <?php endif; ?>
                        
                        <div>
                            <label for="guest_name" class="form-label">Full Name</label>
                            <input type="text" id="guest_name" name="guest_name" class="form-input" required>
                        </div>
                        
                        <div>
                            <label for="guest_email" class="form-label">Email</label>
                            <input type="email" id="guest_email" name="guest_email" class="form-input" required>
                        </div>
                        
                        <div>
                            <label for="guest_phone" class="form-label">Phone</label>
                            <input type="tel" id="guest_phone" name="guest_phone" class="form-input" required>
                        </div>
                        
                        <div>
                            <label for="special_requests" class="form-label">Special Requests (Optional)</label>
                            <textarea id="special_requests" name="special_requests" rows="3" class="form-input"></textarea>
                        </div>
                        
                        <button type="submit" class="btn btn-primary w-full text-lg">
                            Reserve Now
                        </button>
                    </form>
                    
                    <div class="mt-6 text-center text-sm text-gray-600">
                        <p>✓ Free cancellation within 24 hours</p>
                        <p>✓ No credit card required</p>
                        <p>✓ Instant confirmation</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Related Rooms -->
<?php if($relatedRooms && count($relatedRooms) > 0): ?>
<section class="py-16 bg-gray-50">
    <div class="container-custom">
        <div class="text-center mb-12" data-aos="fade-up">
            <h2 class="text-3xl md:text-4xl font-display font-bold mb-4">You Might Also Like</h2>
            <p class="text-lg text-gray-600">Explore other rooms in our collection</p>
        </div>
        
        <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
            <?php $__currentLoopData = $relatedRooms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $relatedRoom): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="card card-hover" data-aos="fade-up" data-aos-delay="<?php echo e($index * 100); ?>">
                <div class="relative overflow-hidden h-64">
                    <img src="<?php echo e($relatedRoom->image); ?>" 
                         alt="<?php echo e($relatedRoom->name); ?>" 
                         class="w-full h-full object-cover transform transition-transform duration-500 hover:scale-110">
                    <div class="image-overlay"></div>
                    <div class="absolute top-4 right-4 bg-primary-600 text-white px-4 py-2 rounded-full font-bold">
                        NPR <?php echo e(number_format($relatedRoom->price_per_night)); ?>

                    </div>
                </div>
                <div class="p-6">
                    <h3 class="text-xl font-display font-bold mb-2"><?php echo e($relatedRoom->name); ?></h3>
                    <p class="text-gray-600 mb-4"><?php echo e($relatedRoom->short_description); ?></p>
                    <a href="<?php echo e(route('rooms.show', $relatedRoom->slug)); ?>" class="btn btn-outline w-full">View Details</a>
                </div>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</section>
<?php endif; ?>

<?php $__env->startPush('scripts'); ?>
<script>
    // Initialize room detail swiper
    const roomDetailSwiper = new Swiper('.room-detail-swiper', {
        loop: true,
        autoplay: {
            delay: 4000,
            disableOnInteraction: false,
        },
        pagination: {
            el: '.swiper-pagination',
            clickable: true,
        },
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    });
</script>
<?php $__env->stopPush(); ?>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/sumankc/Desktop/ Websites/Hotel Bardan Boutique/resources/views/rooms/show.blade.php ENDPATH**/ ?>