<?php
    $pickerId = $pickerId ?? 'plMultiFilter';
    $emptyLabel = $emptyLabel ?? 'All';
    $searchPlaceholder = $searchPlaceholder ?? 'Search...';
    $inputName = $inputName ?? 'items[]';
    $selectedValues = array_values($selectedValues ?? []);
    $optionMap = $options ?? [];
    $toggleLabel = $toggleLabel ?? $emptyLabel;
?>
<div class="pl-dimension-picker pl-multi-filter-picker" id="<?php echo e($pickerId); ?>"
     data-empty-label="<?php echo e($emptyLabel); ?>"
     data-input-name="<?php echo e($inputName); ?>"
     data-selected='<?php echo json_encode($selectedValues, 15, 512) ?>'
     data-labels='<?php echo json_encode($optionMap, 15, 512) ?>'>
    <button type="button" class="pl-dimension-picker-toggle form-select text-start" data-multi-filter-toggle aria-haspopup="listbox" aria-expanded="false">
        <span class="pl-dimension-picker-label" data-multi-filter-label><?php echo e($toggleLabel); ?></span>
    </button>
    <div class="pl-dimension-picker-menu d-none" data-multi-filter-menu>
        <div class="pl-dimension-picker-search">
            <i class="bi bi-search"></i>
            <input type="search" class="form-control form-control-sm" data-multi-filter-search placeholder="<?php echo e($searchPlaceholder); ?>" autocomplete="off">
        </div>
        <div class="pl-dimension-picker-tree" data-multi-filter-list role="listbox">
            <?php $__currentLoopData = $optionMap; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value => $optionLabel): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <label class="pl-dimension-picker-item pl-multi-filter-option" data-multi-filter-option data-label="<?php echo e(strtolower($optionLabel)); ?>">
                    <span style="display:inline-block;width:22px"></span>
                    <span class="pl-dimension-picker-option">
                        <input type="checkbox" value="<?php echo e($value); ?>" data-multi-filter-checkbox <?php echo e(in_array($value, $selectedValues, true) ? 'checked' : ''); ?>>
                        <span class="pl-dimension-picker-option-label"><?php echo e($optionLabel); ?></span>
                    </span>
                </label>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
        <div class="pl-dimension-picker-empty d-none" data-multi-filter-empty>No matches</div>
        <div class="pl-dimension-picker-actions">
            <button type="button" class="btn btn-link btn-sm p-0" data-multi-filter-clear><?php echo e($emptyLabel); ?></button>
        </div>
    </div>
    <div data-multi-filter-inputs>
        <?php $__currentLoopData = $selectedValues; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <input type="hidden" name="<?php echo e($inputName); ?>" value="<?php echo e($value); ?>">
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
</div>
<?php /**PATH /home/duiclick/public_html/test.duiclick.com/resources/views/reports/profit-loss/_multi-filter-picker.blade.php ENDPATH**/ ?>