## Summary - consolidate internal platform naming from `Tenant` to `Environment` / `ManagedEnvironment` across models, controllers, services, and Filament resources - rename environment-scoped UI surfaces such as dashboards, chooser flows, navigation, and related widgets to match the updated environment-first domain language - align middleware, onboarding/review lifecycle services, jobs, and route/context controllers with the new environment-scoped architecture ## Validation - not rerun as part of this commit/push/PR request ## Notes - branch is 1 commit ahead of `platform-dev` - main commit: `refactor: consolidate internal tenant model naming` Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #355
31 lines
827 B
PHP
31 lines
827 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Widgets\ManagedEnvironment;
|
|
|
|
use App\Models\ManagedEnvironment;
|
|
use App\Support\Tenants\TenantLifecyclePresentation;
|
|
use Filament\Facades\Filament;
|
|
use Filament\Widgets\Widget;
|
|
|
|
class ManagedEnvironmentArchivedBanner extends Widget
|
|
{
|
|
protected static bool $isLazy = false;
|
|
|
|
protected string $view = 'filament.widgets.managed-environment.managed-environment-archived-banner';
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
protected function getViewData(): array
|
|
{
|
|
$tenant = Filament::getTenant();
|
|
|
|
return [
|
|
'tenant' => $tenant instanceof ManagedEnvironment ? $tenant : null,
|
|
'presentation' => $tenant instanceof ManagedEnvironment ? TenantLifecyclePresentation::fromTenant($tenant) : null,
|
|
];
|
|
}
|
|
}
|