<div class="sidebar-item st-icheck st-border-radius">
    <div class="item-title d-flex justify-content-between align-items-center">
        <div><?php echo esc_html($title); ?></div>
        <i class="fa fa-angle-up" aria-hidden="true"></i>
    </div>
    <div class="item-content">
        <ul>
            <?php
            for($i = 5; $i >= 1; $i--){
                echo '<li class="st-icheck-item"><label>';
                $star = '';
                for($j = 1; $j <= $i; $j++){
                    $star .= '<i class="fa fa-star"></i> ';
                }
                echo balanceTags($star);
                echo '<input type="checkbox" name="review_score" data-type="hotel_rate" value="'. esc_attr($i) .'" class="filter-item"/><span class="checkmark fcheckbox"></span>
        </label>
        </li>';
            }
            ?>
        </ul>
    </div>
</div>