<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('clients.reseller_pop_search', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


    <div class="mt-2 card">
        <div class="card-body">
            <div id="customer_list_body">
                <div id="processing">
                    <div>Processing.....</div>
                </div>
                <p class="listCounter">Total: <?php echo e($list->total()); ?></p>
                <div class="table-responsive">
                    <?php echo $__env->make('clients.customer_search', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                </div>
                <?php echo e($list->links()); ?>


            </div>
        </div>
        <div class="card-footer">
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('ajax'); ?>
    <script type="text/javascript">
        $(function() {
            $('#reset').click(function() {
                $('#result').html('');
                $('#pop').html('<option value="all">Select One</option>');
            });

            $('#searchBtn').on('click', function(e) {
                e.preventDefault();
                $('#processing').show();
                $('nav .pagination').hide();
                $('.listCounter').hide();

                $('body').append('<div id="processing">processing.....</div>');
                $.ajax({
                    type: 'get',
                    url: '<?php echo e(route('activeCustomerSearch')); ?>',
                    data: $('#search').serialize(),
                    success: function(result) {
                        $('#result').html(result);
                        $('#processing').hide();

                    }
                });
            });

        });
    </script>

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

<?php echo $__env->make('layout.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/crp/radius-circle/resources/views/clients/active.blade.php ENDPATH**/ ?>