components([ Forms\Components\TextInput::make('cross_article')->label(__('Cod echivalent'))->required()->maxLength(64), Forms\Components\TextInput::make('brand')->label(__('Brand'))->maxLength(64), ]); } public function table(Table $table): Table { return $table ->recordTitleAttribute('cross_article') ->columns([ Tables\Columns\TextColumn::make('cross_article')->label(__('Cod'))->searchable(), Tables\Columns\TextColumn::make('brand')->placeholder('—'), ]) ->headerActions([Actions\CreateAction::make()]) ->actions([Actions\EditAction::make(), Actions\DeleteAction::make()]) ->emptyStateHeading(__('Niciun cod cross')) ->emptyStateDescription(__('Adaugă coduri echivalente OEM/aftermarket ca să fie găsite în căutarea din magazin.')); } }