
<form action="<?php echo e(request()->url()); ?>" method="get" id="filterForm">
<div class="table-filter">
    <div class="filter">
        <div class="search">
            <input type="text" id="search" name="search" value="<?php echo e(request('search')); ?>" placeholder="Search..."/>
        </div>
        <button type="submit" class="apply-btn"><i data-lucide="search"></i>Search</button>
    </div>
    <div class="filter d-flex">
        <?php if(isset($status) && $status == true): ?>
        <select
            class="form-select form-select-sm"
            aria-label=".form-select-sm example"
            name="status"
            id="status"
        >
            <option value="" disabled selected>--Status--</option>
            <option value="all" <?php echo e(request('status') == 'all' ? 'selected' : ''); ?>>All</option>
            <option value="active" <?php echo e(request('status') == 'active' ? 'selected' : ''); ?>>Active</option>
            <option value="deactive" <?php echo e(request('status') == 'deactive' ? 'selected' : ''); ?>>Deactive</option>
        </select>
        <?php endif; ?>
        <select
            class="form-select form-select-sm"
            aria-label=".form-select-sm example"
            name="order"
            id="order"
        >
            <option value="asc" <?php echo e(request('order') == 'asc' ? 'selected' : ''); ?>>ASC</option>
            <option value="desc" <?php echo e(request('order') == 'desc' ? 'selected' : ''); ?>>DESC</option>
        </select>
        <select
            class="form-select form-select-sm show"
            aria-label=".form-select-sm example"
            name="perPage"
            id="perPage"
        >
            <option value="15" <?php echo e(request('perPage') == 15 ? 'selected' : ''); ?>>15</option>
            <option value="30" <?php echo e(request('perPage') == 30 ? 'selected' : ''); ?>>30</option>
            <option value="45" <?php echo e(request('perPage') == 45 ? 'selected' : ''); ?>>45</option>
            <option value="60" <?php echo e(request('perPage') == 60 ? 'selected' : ''); ?>>60</option>
        </select>
        <?php if(isset($button)): ?>
            <a href="<?php echo e($route); ?>" class="apply-btn"><i data-lucide="settings"></i><?php echo e($text); ?></a>
        <?php endif; ?>

    </div>
</div>
</form>
<?php $__env->startPush('single-script'); ?>
    <script>
        (function ($) {
            "use strict";
            $('#perPage').on('change', function() {
                $('#filterForm').submit();
            });

            $('#order').on('change', function() {
                $('#filterForm').submit();
            });

            $('#status').on('change', function() {
                $('#filterForm').submit();
            });
        })(jQuery);

    </script>
<?php $__env->stopPush(); ?>
<?php /**PATH /www/wwwroot/mxawfis.mimeld.com/resources/views/backend/subscriber/include/__filter.blade.php ENDPATH**/ ?>