<?php $__env->startSection('mainContent'); ?>
    <?php echo e(generateBreadcrumb()); ?>

    <section class="mb-40 up_st_admin_visitor">
        <div class="container-fluid p-0">
            <div class="white-box">
                <div class="row justify-content-center">
                    <div class="col-12">
                        <div class="box_header common_table_header">
                            <div class="main-title d-flex">
                                <h3 class="mb-0 mr-30" id="page_title"><?php echo e(__('whatsapp.agents')); ?></h3>
                                <ul>
                                    <li><a href="<?php echo e(route('whatsapp-support.agents.create')); ?>"
                                           class="primary-btn radius_30px fix-gr-bg text-white"><i
                                                class="ti-plus"></i> <?php echo e(__('whatsapp.add_agent')); ?></a>
                                    </li>
                                </ul>
                            </div>

                        </div>
                    </div>
                    <div class="col-lg-12">
                        <div class="QA_section QA_section_heading_custom check_box_table">
                            <div class="QA_table ">
                                <!-- table-responsive -->
                                <div class="table-responsive">
                                    <table class="table Crm_table_active3">
                                        <thead>
                                        <tr>
                                            <th scope="col"><?php echo e(__('whatsapp.id')); ?></th>
                                            <th scope="col"><?php echo e(__('whatsapp.name')); ?></th>
                                            <th scope="col"><?php echo e(__('whatsapp.designation')); ?></th>
                                            <th scope="col"><?php echo e(__('whatsapp.number')); ?></th>
                                            <th scope="col"><?php echo e(__('whatsapp.URL')); ?></th>
                                            <th scope="col"><?php echo e(__('whatsapp.action')); ?></th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <?php $__empty_1 = true; $__currentLoopData = $agents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $agent): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                            <tr>
                                                <th><a><?php echo e(translatedNumber($index+1)); ?></a></th>
                                                <td><a href=""><?php echo e($agent->name); ?></a></td>
                                                <td><?php echo e($agent->designation); ?></td>
                                                <td><?php echo e(translatedNumber($agent->number)); ?></td>
                                                <td><?php echo e($agent->url); ?></td>
                                                <td>
                                                    <div class="dropdown CRM_dropdown">
                                                        <button class="btn btn-secondary dropdown-toggle" type="button"
                                                                id="dropdownMenu2" data-bs-toggle="dropdown"
                                                                aria-haspopup="true" aria-expanded="false">
                                                            <?php echo e(__('common.Select')); ?>

                                                        </button>
                                                        <div class="dropdown-menu dropdown-menu-right"
                                                             aria-labelledby="dropdownMenu2">
                                                            <a class="dropdown-item"
                                                               href="<?php echo e(route('whatsapp-support.agents.show', $agent->id)); ?>"
                                                               type="button"><?php echo e(__('common.Edit')); ?></a>
                                                            <a href="#" data-bs-toggle="modal"
                                                               data-bs-target="#deleteAdmissionQueryModal<?php echo e($index); ?>"
                                                               class="dropdown-item"
                                                               type="button"><?php echo e(__('common.Delete')); ?></a>

                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <div class="modal fade admin-query"
                                                 id="deleteAdmissionQueryModal<?php echo e($index); ?>">
                                                <div class="modal-dialog modal-dialog-centered">
                                                    <div class="modal-content">
                                                        <div class="modal-header">
                                                            <h4 class="modal-title"><?php echo e(__('common.Delete')); ?> <?php echo e(__('common.File')); ?></h4>
                                                            <button type="button" class="close text-success"
                                                                    data-bs-dismiss="modal">&times;
                                                            </button>
                                                        </div>
                                                        <div class="modal-body">
                                                            <div class="text-center">
                                                                <h4><?php echo e(__('common.Are you sure')); ?>?</h4>
                                                            </div>
                                                            <div class="mt-40 d-flex justify-content-between">
                                                                <button type="button" class="primary-btn tr-bg"
                                                                        data-bs-dismiss="modal"><?php echo e(__('common.Cancel')); ?>

                                                                </button>
                                                                <a href="<?php echo e(route('whatsapp-support.agents.delete', $agent->id)); ?>"
                                                                   class="primary-btn fix-gr-bg"
                                                                   type="submit"><?php echo e(__('common.Delete')); ?></a>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                        <?php endif; ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/minialms/app.minialms.com/Modules/WhatsappSupport/Resources/views/agents/index.blade.php ENDPATH**/ ?>