<?php

namespace App\Filament\Widgets;

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

class AttentionQueue extends Widget
{
    protected string $view = 'filament.widgets.attention-queue';

    protected int|string|array $columnSpan = ['md' => 2, 'xl' => 4];

    protected static ?int $sort = -1;

    protected static bool $isLazy = false;

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