<?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> Branch Managers </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>Name</th>
                                <th>Email</th>
                                <th>Phone</th>
                                <th>Address</th>
                                <th>City</th>
                                <th>State</th>
                                <th>Country</th>
                                <th>Actions</th>
                            </tr>
                        </thead>
                        <tbody class="table-border-bottom-0">
                            <?php if(!empty($managers)): ?>
                                <?php $__currentLoopData = $managers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $m): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($m->name); ?></td>
                                        <td><?php echo e($m->email); ?></td>
                                        <td><?php echo e($m->phone); ?></td>
                                        <td><?php echo e($m->address); ?></td>
                                        <td><?php echo e($m->city); ?></td>
                                        <td><?php echo e($m->state); ?></td>
                                        <td><?php echo e($m->country); ?></td>
                                        <td>
                                            <div class="dropdown">
                                                <button type="button" class="btn p-0 dropdown-toggle hide-arrow"
                                                    data-bs-toggle="dropdown">
                                                    <i class="bx bx-dots-vertical-rounded"></i>
                                                </button>
                                                <div class="dropdown-menu">
                                                    <a class="dropdown-item"
                                                        href="<?php echo e(route('admin.editmanager', $m->id)); ?>"><i
                                                            class="bx bx-edit-alt me-1"></i> Edit</a>
                                                    <a class="dropdown-item"
                                                        href="<?php echo e(route('admin.deletemanager', $m->id)); ?>"
                                                        onclick="return confirm('Are you sure you want to delete?');">
                                                        <i class="bx bx-trash me-1"></i> Delete
                                                    </a>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php endif; ?>
                        </tbody>
                    </table>

                </div>
                <div class="custom-pagination">
                    <?php echo $managers->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/list-manager.blade.php ENDPATH**/ ?>