<html >
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <title></title>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
    <style>
        body
        {
            font-size:15px;
            font-family: 'Roboto', sans-serif;
        }
        .table1 {
          border-collapse: collapse;
        }
        
        .table1, .th1, .td1 {
          border: 1px solid black;
        }

        h1,h2,h3,h4,h5,h6,p {
            margin: 5;
        }

        .result-table {
            width: 100%;
            margin-top: 10px;
        }

        .result-table th {
            height: 50px;
            border-bottom: 1px solid #ddd;
            border-left: 1px solid #ddd;
        }

         .result-table td {
            border-bottom: 1px solid #ddd;
            border-left: 1px solid #ddd;
            padding: 5px;
        }
        
        .btn-part {
            
        }

        .btn{
           padding:18px 30px;
           border-color:black;
           background-color:inherit;
           border-radius:40px;
       }
       .btn:hover{
           padding:18px 30px;
           color:white;
           background-color:black;
           border-radius:40px;
       }

       .table-det {
            border-collapse: collapse;
            width: 100%;
            margin-top: 10px;
       }

       .table-det, .table-det td, .table-det th {
            border: 1px solid #a3a3a3;
            padding: 5px;
       }

       .table-bordered {
            border-collapse: collapse;
            width: 100%;
       }

       .table-bordered, .table-bordered td, .table-bordered th {
            border: 1px solid #ddd;
       }
        
        
       @page  {
}
    </style>
    <script>
	function printDiv(divName) {
     var printContents = document.getElementById(divName).innerHTML;
     var originalContents = document.body.innerHTML;

     document.body.innerHTML = printContents;

     window.print();

     document.body.innerHTML = originalContents;
     
}
	</script>
    
</head>
<body><center>
    <div class="container">    
        <div id="printableArea" style="height: 100%;" >
            <div style="width:21cm;padding:5px;" >
       
                <!-------------------  HEAD  -------------------------------------->
                <div style="border:double; padding: 10px; width: 100%; float: left;">
                    <table style="width:100%; border-bottom: 2px solid #ddd; padding-bottom:10px;">
                        <tr style="">
                            <?php $__currentLoopData = $CompanyDetails; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $CompanyDetail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <td style="width: 20%;">
                                <img src="<?php echo e(asset('storage/CompanyDetail/Logo/'.$CompanyDetail->logo)); ?>" style="width:150px;">
                            </td>
                            <td style="width:80%;">
                                <h1><?php echo e($CompanyDetail->title); ?></h1>
                                <p><?php echo e($CompanyDetail->tagline); ?></p>
                                <p><?php echo e($CompanyDetail->address); ?></p>
                                <p><?php echo e($CompanyDetail->email); ?></p>
                                <p><?php echo e($CompanyDetail->phone); ?></p>
                            </td>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tr>
                    </table>
                    
                    <?php $si=0; ?>
                    <?php $__currentLoopData = $Orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $Order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <table class="table-det">
                        <thead>
                            <tr>
                                <th>SLNO.</th>
                                <th>Order No.</th>
                                <th>Customer</th>
                                <th>Status</th>
                                <th>Duration</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><?php echo e(++$si); ?></td>
                                <td><?php echo e($Order->id); ?></td>
                                <td><?php echo e($Order->user->name); ?></td>
                                <td><?php echo e($Order->status->title); ?></td>
                                <td><?php echo e($Order->duration->title); ?></td>
                                                    
                            </tr>
                            <tr>
                                <td rowspan="2" colspan="5">
                                    <table class="table-bordered">
                                        <thead>
                                            <tr>
                                                <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($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>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>


            </div>
        </div>
        <div class="btn-part">
            <input type="button" onclick="printDiv('printableArea')" value="Print Form" class="btn"/>
        </div>
        
    </div>
    
</center></body>
                  


    
        <?php /**PATH D:\washclub\resources\views/DboyReport/detailPrint.blade.php ENDPATH**/ ?>