<?php $__env->startSection('title', $product->name . ' — MUVR Labs'); ?>
<?php $__env->startSection('content'); ?>

<section class="page-hero-dark py-5 px-4 px-lg-5">
    <div class="container-fluid">
        <div class="row align-items-center">
            <div class="col-lg-8">
                <nav aria-label="breadcrumb" class="mb-2">
                    <ol class="breadcrumb" style="font-size:.75rem">
                        <li class="breadcrumb-item"><a href="<?php echo e(route('home')); ?>" class="text-secondary text-decoration-none">Home</a></li>
                        <li class="breadcrumb-item"><a href="<?php echo e(route('products')); ?>" class="text-secondary text-decoration-none">Products</a></li>
                        <li class="breadcrumb-item active text-white"><?php echo e($product->name); ?></li>
                    </ol>
                </nav>
                <h1 class="fw-800 text-white mb-2" style="font-size:1.6rem"><?php echo e($product->name); ?></h1>
                <?php if($product->standard_badge): ?>
                <span class="product-standard-badge"><?php echo e($product->standard_badge); ?> Compliant</span>
                <?php endif; ?>
            </div>
        </div>
    </div>
</section>

<section class="py-5 px-4 px-lg-5">
    <div class="container-fluid">
        <div class="row g-5">
            <div class="col-lg-4">
                <div class="d-flex align-items-center justify-content-center mb-3" style="background:#f1f5f9;border-radius:12px;height:220px;border:1px solid var(--border-light)">
                    <?php if($product->hero_image): ?>
                    <img src="<?php echo e(asset('uploads/images/'.$product->hero_image)); ?>" alt="<?php echo e($product->name); ?>" style="max-height:200px;max-width:90%;object-fit:contain">
                    <?php else: ?>
                    <div style="width:100px;height:120px;background:#dbeafe;border-radius:8px;border:1px solid #93c5fd"></div>
                    <?php endif; ?>
                </div>
                <?php if($product->images->count()): ?>
                <div class="row g-2 mb-4">
                    <?php $__currentLoopData = $product->images->take(3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $img): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-4">
                        <div style="height:60px;background:#e8f0fe;border-radius:5px;border:1px solid #dbeafe;overflow:hidden">
                            <img src="<?php echo e(asset('uploads/images/'.$img->image_path)); ?>" alt="" style="width:100%;height:100%;object-fit:cover">
                        </div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
                <?php endif; ?>
                <div class="d-flex flex-column gap-2">
                    <a href="#enquiry-form" class="btn btn-brand">Enquire About This Product</a>
                    <?php if($product->brochure_file): ?>
                    <a href="<?php echo e(asset('uploads/brochures/'.$product->brochure_file)); ?>" class="btn btn-outline-brand" download>Download Brochure</a>
                    <?php endif; ?>
                </div>
            </div>
            <div class="col-lg-8">
                <?php if($product->subtitle): ?>
                <div class="text-brand fw-600 mb-3" style="font-size:.78rem;text-transform:uppercase;letter-spacing:.5px"><?php echo e($product->subtitle); ?></div>
                <?php endif; ?>
                <div class="mb-4" style="font-size:.85rem;color:#475569;line-height:1.7"><?php echo $product->full_description; ?></div>
                <?php if($product->features->count()): ?>
                <h5 class="fw-700 mb-3" style="font-size:.92rem;color:var(--brand-dark)">Key Features</h5>
                <div class="row g-2">
                    <?php $__currentLoopData = $product->features; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-md-6">
                        <div class="feature-check" style="font-size:.82rem;color:#374151"><?php echo e($feature->feature); ?></div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
                <?php endif; ?>
            </div>
        </div>

        <hr class="divider-light my-5">

        
        <div class="row justify-content-center" id="enquiry-form">
            <div class="col-lg-7">
                <div class="fw-800 mb-4" style="font-size:1.1rem;color:var(--brand-dark)">Enquire About <?php echo e($product->name); ?></div>
                <?php if(session('success')): ?>
                <div class="alert alert-success"><?php echo e(session('success')); ?></div>
                <?php endif; ?>
                <form method="POST" action="<?php echo e(route('enquiry.store')); ?>" class="p-4 rounded-3" style="background:#f8fafc;border:1px solid var(--border-light)">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="product_id" value="<?php echo e($product->id); ?>">
                    <input type="hidden" name="enquiry_type" value="product">
                    <div class="row g-3 mb-3">
                        <div class="col-md-6">
                            <label class="form-label">Name *</label>
                            <input type="text" name="name" class="form-control" required>
                        </div>
                        <div class="col-md-6">
                            <label class="form-label">Company</label>
                            <input type="text" name="company" class="form-control">
                        </div>
                        <div class="col-md-6">
                            <label class="form-label">Email *</label>
                            <input type="email" name="email" class="form-control" required>
                        </div>
                        <div class="col-md-6">
                            <label class="form-label">Phone</label>
                            <input type="text" name="phone" class="form-control">
                        </div>
                    </div>
                    <div class="mb-3">
                        <label class="form-label">Message</label>
                        <textarea name="message" class="form-control" rows="4" placeholder="Describe your requirement..."></textarea>
                    </div>
                    <button type="submit" class="btn btn-brand px-4">Submit Enquiry</button>
                </form>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Justin\Documents\MUVR_Req\MUVRLABS\muvrlabs\resources\views/pages/product-detail.blade.php ENDPATH**/ ?>