sync( $this->getTableFiltersSessionKey(), request: request(), tenantFilterName: null, ); parent::mount(); } private function tableHasRecords(): bool { return $this->getTableRecords()->count() > 0; } protected function getHeaderActions(): array { return [ BackupSetResource::makeCreateAction() ->visible(fn (): bool => $this->tableHasRecords()), ]; } protected function getTableEmptyStateActions(): array { return [ BackupSetResource::makeCreateAction(), ]; } public function getSubheading(): ?string { return match (request()->string('backup_health_reason')->toString()) { TenantBackupHealthAssessment::REASON_NO_BACKUP_BASIS => 'No usable completed backup basis is currently available for this tenant.', TenantBackupHealthAssessment::REASON_LATEST_BACKUP_STALE => 'The latest backup detail is no longer available, so this view stays on the backup-set list.', TenantBackupHealthAssessment::REASON_LATEST_BACKUP_DEGRADED => 'The latest backup detail is no longer available, so this view stays on the backup-set list.', default => null, }; } }