<style>
    th { font-size: 20px; }
    .table-striped tbody tr:nth-of-type(odd) { background-color: #EFEFEF; }
    blink { font-size: 15px; font-weight: bold; }
</style>

<table id="example" class="table table-striped table-bordered dt-responsive nowrap" style="width:100%">
    <thead>
        <tr style="background-color: rgb(65, 110, 110); color: white;">
            <th>Action</th>
            <th>Sr.No</th>
            <th>MRD No</th>
            <th>Name</th>
            <th>Gender/Age</th>
            <th>In Time</th>
            <th>Type</th>
            <th>Amount</th>
            <th>User</th>
            <th>Consultant</th>
            <th>Investigation</th>
            <th>Sort Time</th>
        </tr>
    </thead>
    <tbody>
        <?php
            $i = 1;
            $UserId = Session::get('UserId');
        ?>
        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $result): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php
                $bgcolor = $result->Dilated ? 'rgb(133 198 205)' : ($result->Appointment ? '#e3e337' : '');
                $OpdTypeName = $result->OpdType == 1 ? 'OPD' : 'App';
                $PayMode = $result->PayMode == 'Mobile Payment' ? 'Online' : $result->PayMode;
            ?>
            <tr style="background-color: <?php echo e($bgcolor); ?>">
                <td>
                   
                        <a href="javascript:void(0);" class="update" data-id="<?php echo e($result->MrdNo); ?>" title="Edit">
                            <i class="fas fa-pencil-alt" style="color: rgb(79, 175, 184);"></i>
                        </a>&nbsp;&nbsp;
                    
                    <a href="javascript:void(0);" onclick="stickerPrint(<?php echo e($result->MrdNo); ?>)" title="Print Sticker">
                        <i class="fas fa-print" style="color: rgb(79, 175, 184);"></i>
                    </a>&nbsp;&nbsp;
                    <a href="javascript:void(0);" onclick="patientOut(<?php echo e($result->id); ?>, <?php echo e($result->MrdNo); ?>, '<?php echo e($result->InDate); ?>', '<?php echo e($result->PatientName); ?>')" title="Patient Out">
                        <i class="fas fa-external-link-alt" style="color: rgb(79, 175, 184);"></i>
                    </a>
                </td>
                <td style="text-align: center;"><strong><?php echo e($i++); ?></strong></td>
                <td>
                    <a href="#" data-toggle="modal" data-target="#modal-report33" onclick="showOptoForm(<?php echo e($result->MrdNo); ?>, <?php echo e($result->id); ?>, '<?php echo e($result->InDate); ?>')">
                        <strong><?php echo e($result->MrdNo); ?></strong>
                    </a>
                </td>
                <td>
                    <a href="#" data-toggle="modal" data-target="#modal-report33" onclick="showOptoForm(<?php echo e($result->MrdNo); ?>, <?php echo e($result->id); ?>, '<?php echo e($result->InDate); ?>')">
                        <strong><?php echo e(strtoupper(strtolower($result->PatientName))); ?></strong>
                    </a>
                </td>
                <td><?php echo e($result->Gender); ?> / <?php echo e($result->Age); ?></td>
                <td><?php echo e(\Carbon\Carbon::parse($result->InTime)->format('h:i a')); ?></td>
                <td><?php echo e($result->PatientType); ?> - (<?php echo e($OpdTypeName); ?>)</td>
                <td>
                    <?php if($UserId == 58): ?>
                        <a href="javascript:void(0);" class="update2" data-id="<?php echo e($result->id); ?>">
                            <?php echo e($result->Amount); ?> - (<?php echo e($PayMode); ?>)
                        </a>
                    <?php else: ?>
                        <?php echo e($result->Amount); ?> - (<?php echo e($PayMode); ?>)
                    <?php endif; ?>
                </td>
                <td><?php echo e(strtoupper(strtolower($result->CreatedByName))); ?></td>
                <td><?php echo e(strtoupper(strtolower($result->ConsultName))); ?></td>
                <td><?php echo e(strtoupper(strtolower($result->InvStName))); ?></td>
                <td><?php echo e($result->InTime); ?></td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>

<script>
    $(document).ready(function () {
        $('#example').DataTable({
            responsive: true,
            pageLength: 50,
            order: [[11, "asc"]],
            columnDefs: [
                { targets: 11, visible: false }
            ]
        });
    });
</script>
<?php /**PATH C:\laragon\www\parijathosp\resources\views/opd/viewqueuelists.blade.php ENDPATH**/ ?>