schema([ Section::make('Plan Information') ->description('Add a new plan') ->schema([ TextInput::make('name')->label('Page Name') ->required(), TextInput::make('description'), TextInput::make('product_id')->required(), TextInput::make('pricing_id')->required(), TextInput::make('price')->numeric()->required(), Select::make('monthly_billing')->options([ 1 => 'Monthly', 0 => 'Yearly', ])->default(1)->required(), KeyValue::make('details') ->label('Plan Details (Optional)') ->keyPlaceholder('Name') ->valuePlaceholder('Content') ->reorderable(), ]), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('name')->label('Name'), TextColumn::make('product_id')->label('Product'), TextColumn::make('pricing_id')->label('Pricing'), TextColumn::make('price')->label('Price'), BooleanColumn::make('monthly_billing')->label('Monthly Billing'), ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListPlans::route('/'), 'create' => Pages\CreatePlan::route('/create'), 'edit' => Pages\EditPlan::route('/{record}/edit'), ]; } }