@@ -36,7 +36,7 @@ public static function canAccess(): bool
3636 {
3737 /** @var Server $server */
3838 $ server = Filament::getTenant ();
39- $ ip = $ server ->allocation ? ->ip ?? null ;
39+ $ ip = $ server ->allocation ->ip ?? null ;
4040
4141 return parent ::canAccess ()
4242 && $ ip !== null
@@ -85,9 +85,9 @@ public static function table(Table $table): Table
8585 ->state (fn (Subdomain $ subdomain ) => $ subdomain ->getLabel ()),
8686 TextColumn::make ('record_type ' )
8787 ->label (trans ('subdomains::strings.record_type ' ))
88- ->icon (fn (Subdomain $ subdomain ) => $ subdomain ->srv_record && empty ($ subdomain ->server ->node ->srv_target ) ? 'tabler-alert-triangle ' : null ) // @phpstan-ignore property.undefined
89- ->color (fn (Subdomain $ subdomain ) => $ subdomain ->srv_record && empty ($ subdomain ->server ->node ->srv_target ) ? 'danger ' : null ) // @phpstan-ignore property.undefined
90- ->tooltip (fn (Subdomain $ subdomain ) => $ subdomain ->srv_record && empty ($ subdomain ->server ->node ->srv_target ) ? trans ('subdomains::strings.srv_target_missing ' ) : null ), // @phpstan-ignore property.undefined
88+ ->icon (fn (Subdomain $ subdomain ) => $ subdomain ->srv_record && empty ($ subdomain ->server ->node ->srv_target ) ? 'tabler-alert-triangle ' : null )
89+ ->color (fn (Subdomain $ subdomain ) => $ subdomain ->srv_record && empty ($ subdomain ->server ->node ->srv_target ) ? 'danger ' : null )
90+ ->tooltip (fn (Subdomain $ subdomain ) => $ subdomain ->srv_record && empty ($ subdomain ->server ->node ->srv_target ) ? trans ('subdomains::strings.srv_target_missing ' ) : null ),
9191 ])
9292 ->recordActions ([
9393 EditAction::make ()
@@ -130,7 +130,7 @@ public static function form(Schema $schema): Schema
130130 ->label (trans ('subdomains::strings.srv_record ' ))
131131 ->helperText (fn () => Filament::getTenant ()->node ->srv_target ? trans ('subdomains::strings.srv_record_help ' ) : trans ('subdomains::strings.srv_target_missing ' )) // @phpstan-ignore property.undefined
132132 ->reactive ()
133- ->disabled (fn () => empty (Filament::getTenant ()->node ->srv_target )), // @phpstan-ignore property.undefined
133+ ->disabled (fn () => empty (Filament::getTenant ()->node ->srv_target )),
134134 ]);
135135 }
136136
0 commit comments