<?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">List of All /</span>Pending Enrollments </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-7"></div>
                <div class="col-md-3">
                    <label for="entries">Search</label>
                    <input type="text" class="form-control" id="search" placeholder="Search Here...">
                </div>
            </div>

            <div class="card">
                
                <div class="table-responsive">
                    <table class="table" id="myDataTable" style="max-width: 100%">
                        <thead>
                            <tr>
                                
                                <th>Branch Manager</th>
                                <th>Subscription</th>
                                <th>Subscriber</th>
                                <th>Benificier</th>
                                <th>Dealing Rep</th>
                                <th>Trusted</th>
                                <th>Manager Review</th>
                                <?php if(Auth::user()->role == 'admin'): ?>
                                    <th>Company Review</th>
                                <?php endif; ?>
                            </tr>
                        </thead>
                        <tbody class="table-border-bottom-0">
                            <?php if($enrollments->isNotEmpty()): ?>
                                <?php $__currentLoopData = $enrollments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k => $e): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        
                                        <td><?php echo e($e->manager->name); ?></td>
                                        <td><?php echo e($e->subscription_type); ?></td>
                                        <td><?php echo e($e->subscription_fname . ' ' . $e->subscription_lname); ?></td>
                                        <td><?php echo e($e->benificiary_fname . ' ' . $e->benificiary_lname); ?></td>
                                        <td><?php echo e($e->dealing_rep_name); ?></td>
                                        <td><?php echo e($e->trusted_name); ?></td>
                                        <td><?php echo e($e->is_branch_review); ?></td>
                                        <?php if(Auth::user()->role == 'admin'): ?>
                                            <td><?php echo e($e->is_admin_review); ?></td>
                                        <?php endif; ?>
                                    </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 class="custom-pagination">
                    <?php echo $enrollments->links(); ?>

                </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/pending.blade.php ENDPATH**/ ?>