<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;
       }
        
        
       @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 = $Items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $Item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <td style="width: 20%;">
                                <img src="<?php echo e(asset('storage/CompanyDetail/Logo/'.$Item->logo)); ?>" style="width:150px;">
                            </td>
                            <td style="width:80%;">
                                <h1><?php echo e($Item->title); ?></h1>
                                <p><?php echo e($Item->tagline); ?></p>
                                <p><?php echo e($Item->address); ?></p>
                                <p><?php echo e($Item->email); ?></p>
                                <p><?php echo e($Item->phone); ?></p>
                            </td>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tr>
                    </table>
                    
                    <table style="width:100%; margin-top:10px; table-layout: fixed; text-align:center; border-bottom:1px double #ddd;">
                    <h2>Process Manager Report</h2>
                        <tr>
                            <td>
                                <?php if($status_id == 1): ?> 
                                        Status: New
                                <?php elseif($status_id == 2): ?> 
                                    Status: Submit
                                <?php elseif($status_id == 3): ?> 
                                    Status: Accept
                                <?php elseif($status_id == 4): ?> 
                                    Status: Pickup
                                <?php elseif($status_id == 5): ?> 
                                    Status: Process
                                <?php elseif($status_id == 6): ?> 
                                    Status: Process Completed
                                <?php elseif($status_id == 7): ?> 
                                    Status: Delivery
                                <?php elseif($status_id == 8): ?> 
                                    Status: Completed
                                <?php elseif($status_id == 9): ?> 
                                    Status: Cancelled
                                <?php else: ?> 
                                    Status: All
                                <?php endif; ?>
                            </td>
                            <td>
                                <?php if($datesort == 'year'): ?>
                                    <?php if($nmbYear != 0): ?>Year: <?php echo e($nmbYear); ?><?php endif; ?>
                                <?php elseif($datesort == 'month'): ?>
                                                <?php if($txtSDate != 0): ?>Month: <?php echo e($txtSDate); ?><?php endif; ?>
                                <?php elseif($datesort == 'day'): ?> 
                                    <?php if($txtSDate != 0): ?>Date: <?php echo e(date_format(date_create($txtSDate),'d-m-Y')); ?>}<?php endif; ?>
                                <?php elseif($datesort == '2'): ?>
                                    <?php if($txtSDate != 0): ?>From: <?php echo e(date_format(date_create($txtSDate),'d-m-Y')); ?> To: <?php echo e(date_format(date_create($txtSDate1),'d-m-Y')); ?><?php endif; ?>
                                <?php endif; ?>
                                
                            </td>
                            <td>
                                Date: <?php echo e(date_format(date_create($today),'d-m-Y')); ?>

                            </td>
                        </tr>
                    </table>
                    <table class="result-table">
                        <thead>
                            <tr>
                                <th>SLNO.</th>
                                <th>Order No.</th>
                                <th>Customer</th>
                                <th>Status</th>
                                <th>Duration</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $si=0; ?>
                            <?php $__currentLoopData = $Results; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $Result): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e(++$si); ?></td>
                                <td><?php echo e($Result->id); ?></td>
                                <td><?php echo e($Result->user->name); ?></td>
                                <td><?php echo e($Result->status->title); ?></td>
                                <td><?php echo e($Result->duration->title); ?></td>                   
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </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/PmReport/Printview.blade.php ENDPATH**/ ?>