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

67 lines
1.5 KiB
PHP

<?php
declare(strict_types=1);
namespace App\Filament\Widgets\Workspace;
use Filament\Widgets\Widget;
class WorkspaceRecentOperations extends Widget
{
protected static bool $isLazy = false;
protected int|string|array $columnSpan = 'full';
protected string $view = 'filament.widgets.workspace.workspace-recent-operations';
/**
* @var array<int, array{
* id: int,
* title: string,
* tenant_label: ?string,
* status_label: string,
* status_color: string,
* outcome_label: string,
* outcome_color: string,
* started_at: string,
* url: string
* }>
*/
public array $operations = [];
/**
* @var array{
* title: string,
* body: string,
* action_label: string,
* action_url: string
* }
*/
public array $emptyState = [];
/**
* @param array<int, array{
* id: int,
* title: string,
* tenant_label: ?string,
* status_label: string,
* status_color: string,
* outcome_label: string,
* outcome_color: string,
* started_at: string,
* url: string
* }> $operations
* @param array{
* title: string,
* body: string,
* action_label: string,
* action_url: string
* } $emptyState
*/
public function mount(array $operations = [], array $emptyState = []): void
{
$this->operations = $operations;
$this->emptyState = $emptyState;
}
}