<?php $__env->startSection('content'); ?>

    <div class="content-wrapper">
        <!-- Content -->
        <div class="container-xxl flex-grow-1 container-p-y">
            <h4 class="fw-bold py-3 mb-4"><span class="text-muted fw-light"> Enrollment /</span> History  </h4>
            
            <div class="row table-controls mb-2">
                <div class="col-md-2">
                    <label for="entries">Show Per Page</label>
                    <select id="entries" class="form-select">
                        <option value="10">10</option>
                        <option value="25">25</option>
                        <option value="50">50</option>
                        <option value="100">100</option>
                    </select>
                </div>
                <div class="col-md-6"></div>
                <div class="col-md-3">
                    <label for="entries">Search</label>
                    <input type="text" class="form-control" id="search" placeholder="Search Here...">
                </div>
                <div class="col-md-1 mt-4">
                    <a href="<?php echo e(url()->previous()); ?>" class="btn btn-primary">Back</a>
                </div>
            </div>

            <div class="card">
                <div class="table-responsive text-nowrap">
                    <table class="table" id="myDataTable" style="max-width: 100%">
                        <thead>
                            <tr>
                                <th>Sno.</th>
                                <th>Note</th>
                                <th>Status</th>
                                <th>Review By</th>
                                <th>Date</th>
                            </tr>
                        </thead>
                        <tbody class="table-border-bottom-0">
                            <?php if($enHistory->isNotEmpty()): ?>
                                <?php $__currentLoopData = $enHistory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $e): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e(ucfirst($loop->index + 1)); ?></td>
                                        <td><?php echo e(isset($e->note) ? ucfirst($e->note) : '----'); ?></td>
                                        <td>
                                            <p class="text-<?php echo e($e->status == 'reject' ? 'danger' : 'primary'); ?>">
                                            <?php echo e(ucfirst($e->status)); ?>

                                            </p>
                                        </td>
                                        <td><?php echo e(ucfirst($e->reviewedBy)); ?></td>
                                        <td><?php echo e(ucfirst($e->created_at)); ?></td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php else: ?>
                                <tr>
                                    <td class="text-center text-danger" colspan="9">No data found.</td>
                                </tr>
                            <?php endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/netmente/Desktop/Alefi/resources/views/admin/enrollment/history.blade.php ENDPATH**/ ?>