

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



<div class="card mb-4">
    <div class="card-header">
        <div class="d-flex">
        
        <div class="mr-auto p-2 align-self-center"><h5>#: <?php echo e($Order->id); ?> </h5></div>
            <div class="mr-auto p-2 align-self-center"><h5>Customer: <?php echo e($Order->user->name); ?> </h5></div>
            <div class="mr-auto p-2 align-self-center"><h5>Contact:<?php if($Order->user->mobile): ?> <?php echo e($Order->user->mobile->mobile); ?> <?php endif; ?></h5></div>
        </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>Service</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 $order_service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span class="badge badge-primary"><?php echo e($order_service->product_service->servicetype->title); ?></span>
                            <?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="d-flex justify-content-end">
            <form method="post" action="<?php echo e(route('PmSinglePrint')); ?>">
                <?php echo csrf_field(); ?>
                <input type="hidden" value="<?php echo e($Order->id); ?>" name="id" id="ID"> 
                <button type="submit" class="btn btn-dark mr-3">Print</button></a>
            </form>
            <a href="<?php echo e(route('PmReports')); ?>"><button type="button" class="btn btn-primary">Done</button></a>
        </div>
    </div>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.pmapp', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\washclub\resources\views/PmReport/detailsview.blade.php ENDPATH**/ ?>