<?php

use Tangibledesign\MyHome\Widgets\General\StatsV2Widget;

/* @var StatsV2Widget $mhCurrentWidget */
global $mhCurrentWidget;
?>
<div class="myhome-stats-v2">
    <?php foreach ($mhCurrentWidget->getAttributes() as $mhAttribute) : ?>
        <div class="myhome-stats-v2__item">
            <div class="myhome-stats-v2__value">
                <?php echo esc_html($mhAttribute['value']); ?>
            </div>

            <div class="myhome-stats-v2__label">
                <?php echo nl2br(wp_kses_post($mhAttribute['label'])); ?>
            </div>
        </div>
    <?php endforeach; ?>
</div>
