<table id="example" class="table table-striped table-bordered dt-responsive nowrap" style="width:100%">
        <thead>
            <tr>
            <th>Sr.No</th>
                <th>Mrd. No</th>
                <th>Name</th>
                <th>Gender</th>
                <!-- <th>Consultant</th> -->
                <th>Age</th> 
                <th>Appointment Date</th>
                <th>Time</th>
                <th>Action</th>
            </tr>
        </thead>
        <tbody>
        <?php $i=1;?>
        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $result): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php if($result->Flag == 1): ?>
                <?php $appointcolor = "style='background-color: antiquewhite;'"; ?>
        <?php else: ?>
            <?php $appointcolor = ""; ?>
        <?php endif; ?>
        
        <tr <?php echo $appointcolor; ?>>
             <td><?php echo e($i); ?></td>
             <td><?php echo e($result->MrdNo); ?></td>
             <td><?php echo e($result->PatientName); ?></td>
             <td><?php echo e($result->Gender); ?></td>
             <!-- <td><?php echo e($result->ConsultantName); ?></td> -->
             <td><?php echo e($result->Age); ?></td>
             <td><?php echo e(date("d-m-Y", strtotime(str_replace('-', '/',$result->AppointDate)))); ?></td>
             <td><?php echo e(date("h:i a", strtotime(str_replace('-', '/',$result->AppointTime)))); ?></td>
             <td>
             <?php if($result->Flag == 0): ?>
               <button type="button" id="AddQueue<?php echo e($result->id); ?>" class="btn btn-secondary btn-finish" onclick="addInQueue(<?php echo e($result->id); ?>)">Add In Queue</button></td>
              <?php endif; ?>
              </tr>
        <?php $i++;?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
    <script type="text/javascript">
      $(document).ready(function() {
      $('#example').DataTable( {
        responsive: true
      });
      });
    </script><?php /**PATH /home/gssnagpu/public_html/hospsoft.in/siddhivinaynetra/resources/views/opd/viewopdappointmentlists.blade.php ENDPATH**/ ?>