Add tenant lifecycle view and limit controls
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\TenantResource\Pages;
|
||||
|
||||
use App\Filament\Resources\TenantResource;
|
||||
use App\Filament\Resources\TenantResource\Schemas\TenantLifecycleInfolist;
|
||||
use Filament\Actions;
|
||||
use Filament\Resources\Pages\ViewRecord;
|
||||
use Filament\Schemas\Schema;
|
||||
|
||||
class ViewTenantLifecycle extends ViewRecord
|
||||
{
|
||||
protected static string $resource = TenantResource::class;
|
||||
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
return __('admin.tenants.pages.lifecycle');
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return __('admin.tenants.pages.lifecycle');
|
||||
}
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
Actions\EditAction::make(),
|
||||
Actions\ActionGroup::make(TenantResource::lifecycleActions())
|
||||
->label(__('admin.tenants.actions.lifecycle'))
|
||||
->icon('heroicon-o-shield-exclamation'),
|
||||
Actions\ActionGroup::make(TenantResource::lifecycleManagementActions())
|
||||
->label(__('admin.tenants.actions.lifecycle_controls'))
|
||||
->icon('heroicon-o-adjustments-horizontal'),
|
||||
];
|
||||
}
|
||||
|
||||
public function infolist(Schema $schema): Schema
|
||||
{
|
||||
return TenantLifecycleInfolist::configure($schema);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user