<?php $__env->startSection('title', $service->title ?? 'Service Detail'); ?>

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

<div class="page-hero">
    <div class="container">
        <h1><?php echo e($service->title); ?></h1>
        <nav aria-label="breadcrumb"><ol class="breadcrumb justify-content-center mb-0">
            <li class="breadcrumb-item"><a href="<?php echo e(route('home')); ?>" class="text-warning">Home</a></li>
            <li class="breadcrumb-item"><a href="<?php echo e(route('services')); ?>" class="text-warning">Services</a></li>
            <li class="breadcrumb-item active text-white"><?php echo e($service->title); ?></li>
        </ol></nav>
    </div>
</div>

<section class="py-5">
    <div class="container">
        <div class="row g-5">
            <div class="col-lg-8">
                <?php if($service->image): ?>
                <img src="<?php echo e(asset('storage/'.$service->image)); ?>" class="img-fluid rounded-3 mb-4 w-100"
                     style="max-height:420px;object-fit:cover" alt="<?php echo e($service->title); ?>">
                <?php endif; ?>
                <div class="prose">
                    <?php echo nl2br(e($service->description)); ?>

                </div>
            </div>
            <div class="col-lg-4">
                <!-- Booking Sidebar -->
                <div class="card border-0 shadow p-4 sticky-top" style="top:80px;border-radius:14px">
                    <h5 style="color:var(--purple-dark)" class="mb-4">Book This Service</h5>
                    <?php if(session('success')): ?>
                    <div class="alert alert-success small"><?php echo e(session('success')); ?></div>
                    <?php endif; ?>
                    <form action="<?php echo e(route('contact.submit')); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <input type="hidden" name="service" value="<?php echo e($service->title); ?>">
                        <div class="mb-3">
                            <input type="text" name="name" class="form-control" placeholder="Your Name" required>
                        </div>
                        <div class="mb-3">
                            <input type="email" name="email" class="form-control" placeholder="Email" required>
                        </div>
                        <div class="mb-3">
                            <input type="tel" name="phone" class="form-control" placeholder="Phone" required>
                        </div>
                        <div class="mb-3">
                            <textarea name="message" class="form-control" rows="3" placeholder="Any questions or specific concerns..."></textarea>
                        </div>
                        <button type="submit" class="btn btn-primary w-100">Send Enquiry</button>
                    </form>
                    <hr>
                    <div class="text-center">
                        <a href="https://wa.me/919810897192?text=Hi Auromon Chakrabarti, I'm interested in <?php echo e(urlencode($service->title)); ?>"
                           class="btn btn-outline-success w-100">
                            <i class="fab fa-whatsapp me-2"></i>WhatsApp Now
                        </a>
                    </div>
                </div>
            </div>
        </div>

        <?php if($related->count()): ?>
        <hr class="my-5">
        <h3 class="section-title mb-5 text-center">Other Services</h3>
        <div class="row g-4 mt-2">
            <?php $__currentLoopData = $related; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-md-4">
                <div class="card service-card h-100">
                    <div class="d-flex align-items-center justify-content-center"
                         style="height:160px;background:linear-gradient(135deg,#f0e8f7,#e8d4f5)">
                        <i class="<?php echo e($s->icon ?? 'fas fa-spa'); ?> fa-2x" style="color:var(--purple-dark);opacity:0.65"></i>
                    </div>
                    <div class="card-body text-center p-3">
                        <h6 class="card-title"><?php echo e($s->title); ?></h6>
                        <a href="<?php echo e(route('service.detail', $s->slug)); ?>" class="btn btn-outline-primary btn-sm">Learn More</a>
                    </div>
                </div>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
        <?php endif; ?>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/rahobefi/floraresidency/resources/views/pages/service-detail.blade.php ENDPATH**/ ?>