

<?php $__env->startSection('contentSection'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header">
                    <div class="pull-left"><i class="fa fa-table"></i> Agents (<span id="module_total_count"></span>)
                    </div>
                    <div class="pull-right">
                        <button type="button" data-toggle="modal" data-target="#addAgentModal" class="btn btn-primary">
                            <i
                                class="fa fa-plus"></i> Add Agent
                        </button>
                    </div>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table id="agentListTable" class="table table-bordered" style="width: 100%"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('pageSpecificScripts'); ?>
    <?php echo $__env->make('admin.agents.agentListTemplate', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.agents.profileDetailsTemplate', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.agents.modals.profileModal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.agents.modals.addAgentModal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.agents.modals.editAgentModal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <script src="<?php echo e(asset('back_assets/assets/plugins/bootstrap-datatable/js/jquery.dataTables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('back_assets/assets/plugins/bootstrap-datatable/js/dataTables.bootstrap4.min.js')); ?>"></script>
    <script src="<?php echo e(asset('back_assets/assets/plugins/alerts-boxes/js/sweetalert.min.js')); ?>"></script>
    <script src="<?php echo e(asset('back_assets/assets/js/app/agentsScript.js')); ?>?<?php echo e(app_version()); ?> "></script>
    <?php if(Session::has('aerrors')): ?>
        <script type="text/javascript">
            swal({
                html: "true",
                title: "",
                text: "<ul style='text-align: left;list-style: disc;margin-left: 0;'><?php $__currentLoopData = Session::get('aerrors'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><?php echo e($error); ?></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></ul>",
                type: "error"
            }, function () {
                $("#addUserModal").modal('show');
            });
        </script>
    <?php endif; ?>
    <?php if(Session::has('asuccess')): ?>
        <script type="text/javascript">
            swal({
                title: "",
                text: '<?php echo e(Session::get('asuccess')); ?>',
                type: "success"
            });
        </script>
    <?php endif; ?>
    <?php if(Session::has('berrors')): ?>
        <script type="text/javascript">
            swal({
                html: "true",
                title: "",
                text: "<ul style='text-align: left;list-style: disc;margin-left: 0;'><?php $__currentLoopData = Session::get('berrors'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><?php echo e($error); ?></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></ul>",
                type: "error"
            });
        </script>
    <?php endif; ?>
    <?php if(Session::has('bsuccess')): ?>
        <script type="text/javascript">
            swal({
                title: "",
                text: '<?php echo e(Session::get('bsuccess')); ?>',
                type: "success"
            });
        </script>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\xampp\htdocs\propco\resources\views/admin/agents/agents.blade.php ENDPATH**/ ?>