schema([ Forms\Components\TextInput::make('teaching_position')->label('Преподавательская должность')->required(), Forms\Components\TextInput::make('service_email')->label('Служебная почта'), Forms\Components\TextInput::make('service_phone')->label('Служебный телефон'), Forms\Components\TextInput::make('cabinet')->label('Кабинет'), ]); } public function table(Table $table): Table { return $table ->recordTitleAttribute('name') ->columns([ Tables\Columns\TextColumn::make('name'), ]) ->filters([ // ]) ->headerActions([ AttachAction::make() ->form(fn (AttachAction $action): array => [ $action->getRecordSelect(), Forms\Components\TextInput::make('teaching_position')->label('Преподавательская должность')->required(), Forms\Components\TextInput::make('service_email')->label('Служебная почта'), Forms\Components\TextInput::make('service_phone')->label('Служебный телефон'), Forms\Components\TextInput::make('cabinet')->label('Кабинет'), ]) ]) ->actions([ Tables\Actions\EditAction::make(), Tables\Actions\DeleteAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]); } }