<?php
/**
 *  Dashboard Widget Template
 *
 *  Dashboard Big Counter widget template
 *
 *  @since 2.4
 *
 *  @author weDevs <info@wedevs.com>
 *
 *  @package dokan
 */
?>
<style>

</style>
<div class="dashboard-widget big-counter">
    <ul class="list-inline">
         <li class="dokan-das-sale">
            <div class="title"><?php _e( 'Sales', 'estana' ); ?></div>
            <div class="count"><?php echo wc_price( $earning ); ?></div>
        </li>
        <li class="dokan-das-earning">
            <div class="title"><?php _e( 'Earning', 'estana' ); ?></div>
            <div class="count"><?php echo wc_price( dokan_get_seller_earnings( get_current_user_id() ) ) ?></div>
        </li>
        <li class="dokan-das-pageview">
            <div class="title"><?php _e( 'Pageview', 'estana' ); ?></div>
            <div class="count"><?php echo dokan_number_format( $pageviews ); ?></div>
        </li>
        <li class="dokan-das-order">
            <div class="title"><?php _e( 'Order', 'estana' ); ?></div>
            <div class="count">
                <?php
                $status = dokan_withdraw_get_active_order_status();
                $total = 0;
                foreach ( $status as $order_status ){
                    $total += $orders_count->$order_status;
                }
                echo number_format_i18n( $total, 0 );
                ?>
            </div>
        </li>

        <?php do_action( 'dokan_seller_dashboard_widget_counter' ); ?>

    </ul>
</div> <!-- .big-counter -->
