schema([ Forms\Components\TextInput::make('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') ->reorderable('sort') ->defaultSort('sort') ->columns([ Tables\Columns\TextColumn::make('name')->label('Имя'), Tables\Columns\TextColumn::make('position')->label('Должность'), ]) ->filters([ // ]) ->headerActions([ AttachAction::make() ->form(fn (AttachAction $action): array => [ $action->getRecordSelect()->preload(), Forms\Components\TextInput::make('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(), ]), ]); } }