TenantAtlas/app/Filament/Widgets/Workspace/WorkspaceNeedsAttention.php
2026-03-09 22:52:00 +01:00

59 lines
1.2 KiB
PHP

<?php
declare(strict_types=1);
namespace App\Filament\Widgets\Workspace;
use Filament\Widgets\Widget;
class WorkspaceNeedsAttention extends Widget
{
protected static bool $isLazy = false;
protected int|string|array $columnSpan = 'full';
protected string $view = 'filament.widgets.workspace.workspace-needs-attention';
/**
* @var array<int, array{
* title: string,
* body: string,
* url: string,
* badge: string,
* badge_color: string
* }>
*/
public array $items = [];
/**
* @var array{
* title: string,
* body: string,
* action_label: string,
* action_url: string
* }
*/
public array $emptyState = [];
/**
* @param array<int, array{
* title: string,
* body: string,
* url: string,
* badge: string,
* badge_color: string
* }> $items
* @param array{
* title: string,
* body: string,
* action_label: string,
* action_url: string
* } $emptyState
*/
public function mount(array $items = [], array $emptyState = []): void
{
$this->items = $items;
$this->emptyState = $emptyState;
}
}