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') ->columns([ Tables\Columns\TextColumn::make('name'), Tables\Columns\TextColumn::make('position'), ]) ->filters([ // ]) ->headerActions([ AttachAction::make() ->form(fn (AttachAction $action): array => [ $action->getRecordSelect(), 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(), ]), ]); } }