

<?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"><h4>My Orders</h4></div>
            <div class="p-2">              
            <!-- <a class="btn btn-primary" href=""><i class="fa fa-plus"></i> ADD New</a> -->
            </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>Order No.</th>
                        <th>Job Status</th>
                        <th>Date Time</th>
                        <th>isCompleted</th>
                        <td>Completing Period</td>                     
                        <th colspan="">Actions</th>
                        <th></th>
                        <th></th>
                    </tr>
                </thead>
               <?php if($result): ?>
                <tbody>
                    <?php $__currentLoopData = $result; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $results): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td ><?php echo e(++$Slno); ?></td>
                        <td><?php echo e($results->order_id); ?></td>
                        <td><?php echo e($results->status->title); ?></td>
                        <td><?php echo e($results->dateTime); ?></td>
                        <td><?php echo e($results->isCompleted); ?></td>
                        <td><?php echo e($results->completingperiod); ?></td>
                        <td>
                        <a href="<?php echo e(route('DeliveryDetails.View',$results->order_id)); ?>"><button type="button" class="btn btn-info">View</i></button></a>
                        </td>
                        <td>
                        <?php if($results->jobstatus>='6'): ?>
                        <a href="<?php echo e(route('InvoicePrint',$results->order_id)); ?>"><button type="button" class="btn btn-secondary">Inovice</i></button></a>
                        <?php endif; ?>
                        </td>
                        <td>
                        <form method="post" action="<?php echo e(route('orderComplete.complete',$results->id)); ?>">
                        <?php echo csrf_field(); ?>
                            <button type="submit" class="btn btn-success mx-2">Completed</i></button>
                        </form>
                        </td>
                        
                                              
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
                <?php endif; ?>
            </table>
        </div>
    </div>
    <div class="card-footer">
    
        <div class="d-flex justify-content-end font-weight-bold"><h5>Total: </h5></div>        
    </div>
</div>

<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.dboyapp', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\comservice\resources\views/DeliveryBoyDashboard/index.blade.php ENDPATH**/ ?>