<?php
/**
 * Dokan Dahsboard Product Listing status filter
 * Template
 *
 * @since 2.4
 *
 * @package dokan
 */
?>
<ul class="dokan-listing-filter dokan-left subsubsub">
    <li<?php echo $status_class == 'all' ? ' class="active"' : ''; ?>>
        <a href="<?php echo $permalink; ?>"><?php printf( __( 'All (%d)', 'dokan' ), $post_counts->total ); ?></a>
    </li>
    <?php foreach ( $statuses as $status => $status_label ): ?>
        <?php
            if ( empty( $post_counts->{$status} ) ) {
                continue;
            }
        ?>
        <li<?php echo $status_class == $status ? ' class="active"' : ''; ?>>
            <a href="<?php echo add_query_arg( array( 'post_status' => $status ), $permalink ); ?>"><?php echo $status_label. ' (' . $post_counts->{$status} . ')'; ?></a>
        </li>
    <?php endforeach ?>
</ul> <!-- .post-statuses-filter -->
