<?php

namespace App\Filament\Widgets;

use App\Support\AdminDashboard;
use Filament\Widgets\Widget;

class FunnelOverview extends Widget
{
    protected string $view = 'filament.widgets.funnel-overview';

    protected int|string|array $columnSpan = 'full';

    protected static ?int $sort = -4;

    protected static bool $isLazy = false;

    public function getViewData(): array
    {
        return ['stages' => app(AdminDashboard::class)->snapshot()['funnel']];
    }
}
