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


<!-- ======= Hero Section ======= -->
<section id="hero" class="shadow d-flex align-items-center pb-5 mt-5">
    <div class="container">
        
            <div class="card-header">
                <div class="d-flex">
                    <div class="mr-auto p-2 align-self-center"><h5>Order Number: <?php echo e($Order->id); ?></h5></div>
                    <?php if($Order->status_id < 5): ?>
                    <a href="<?php echo e(route('Order.edit',$Order->id)); ?>"><button class="btn btn-dark">Edit</button></a>
                    <?php endif; ?>
                </div>
            </div>
            <div class="card-body">
                <div class="table-responsive">
                    <table class="table table-hover">
                        <thead>
                            <tr>
                            <?php $Slno=0; ?>
                                <th>Slno</th>
                                <th>Product</th>
                                <th>Services</th>
                                <th>Quantity</th>
                            </tr>
                        </thead>
                        
                        <tbody>
                        <?php $__currentLoopData = $Order->order_products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order_product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e(++$Slno); ?></td>
                                <td><?php echo e($order_product->product->title); ?></td>
                                <td>
                                    <?php $__currentLoopData = $order_product->order_product_services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ProductServices): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <button class="btn btn-outline-primary mt-2"><?php echo e($ProductServices->product_service->servicetype->title); ?></button>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>                        
                                </td>
                                <td><?php echo e($order_product->quantity); ?></td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="card-footer">
                <div class="col-sm-12">
                    <?php if($Order->text): ?>
                        <p><b>Description:</b> <?php echo e($Order->text); ?></p>
                    <?php endif; ?>
                </div>
                <div class="col-sm-6">
                    <?php if($Order->image): ?>
                        <p><b>Image:</b></p>
                        <img width="100px" src="<?php echo e(asset('storage/images/order/image/'.$Order->image)); ?>"/>
                    <?php endif; ?>
                </div>
                <div class="col-sm-6">
                    <?php if($Order->video): ?>
                        <p><b>Video:</b></p>
                        <video src="<?php echo e(asset('storage/images/order/video/'.$Order->video)); ?>"></video>
                    <?php endif; ?>
                </div>
            </div>
       
    </div>
</section>
<?php $__env->stopSection(); ?>  
<?php echo $__env->make('layouts.homeapp', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\comservice\resources\views/Home/detailsview.blade.php ENDPATH**/ ?>