<?php
if (!defined('ABSPATH')) exit;

$user_id = get_current_user_id();

$total_auctions  = count(stakmv_get_vendor_auctions($user_id));
$active_auctions = stakmv_count_vendor_auctions($user_id, 'active');
$sold_auctions   = stakmv_count_vendor_auctions($user_id, 'sold');
?>

<div class="wcmv-dashboard-cards wcmv-overview-cards">

    <div class="wcmv-card">
        <h4>Total Auctions</h4>
        <strong><?= esc_html($total_auctions) ?></strong>
    </div>

    <div class="wcmv-card">
        <h4>Active Auctions</h4>
        <strong><?= esc_html($active_auctions) ?></strong>
    </div>

    <div class="wcmv-card">
        <h4>Sold Auctions</h4>
        <strong><?= esc_html($sold_auctions) ?></strong>
    </div>

</div>
