<?php
declare(strict_types=1);

namespace PpPhp\Core\Designer\Dashboard;

final class DesignerDashboardCard extends DesignerDashboardWidget
{
    public static function stat(string $id, string $title, string $value = '0', string $icon = 'bi-bar-chart', int $span = 3, array $props = []): self
    {
        return new self($id, 'stat_card', $title, array_replace([
            'value' => $value,
            'icon' => $icon,
            'subtitle' => '',
            'trend' => '',
            'color' => 'primary',
        ], $props), $span);
    }
}
