<?php
if (!defined('ABSPATH')) exit;
$rating_value = '—';
if ( function_exists('stakmv_get_vendor_rating_summary') ) {
    $summary = stakmv_get_vendor_rating_summary(get_current_user_id());
    $count = (int) ($summary['count'] ?? 0);
    if ($count > 0) {
        $rating_value = number_format_i18n((float) ($summary['average'] ?? 0), 1);
    }
}
?>
<div class="wcmv-stats">

    <div class="wcmv-stat stat-green">
        <span>Balance</span>
        <strong>$0.00</strong>
    </div>

    <div class="wcmv-stat stat-blue">
        <span>Items Sold</span>
        <strong>0</strong>
    </div>

    <div class="wcmv-stat stat-orange">
        <span>Watchlist</span>
        <strong>0</strong>
    </div>

    <div class="wcmv-stat stat-red">
        <span>Total Bids</span>
        <strong>0</strong>
    </div>

    <div class="wcmv-stat stat-purple">
        <span>Rating</span>
        <strong><?php echo esc_html($rating_value); ?></strong>
    </div>

</div>
