components([ TextEntry::make('name') ->label(__('hr.fields.name')), TextEntry::make('description') ->label(__('hr.fields.description')) ->placeholder('-') ->columnSpanFull(), TextEntry::make('created_at') ->label(__('hr.fields.created_at')) ->dateTime() ->placeholder('-'), TextEntry::make('updated_at') ->label(__('hr.fields.updated_at')) ->dateTime() ->placeholder('-'), TextEntry::make('deleted_at') ->label(__('hr.fields.deleted_at')) ->dateTime() ->visible(fn (Position $record): bool => $record->trashed()), ]); } }