Paket-Vorteile: dynamische, im Admin pflegbare Vorteilsliste je Tarif

Neue JSON-Spalte plans.benefits (Migration + Cast + Plan::benefitsList()).
Im Admin (Tarife & Pakete) pro Tarif zeilenweise pflegbar; die In-App-
Buchungsseite rendert die Liste in den Tarif-Karten statt einer festen
Zeile. Seeder/Factory mit Beispiel-Vorteilen. Single Source of Truth fuer
Buchungsseite und (folgt separat) die oeffentliche Preise-Seite.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-06-18 16:36:09 +00:00
parent 58b427fcd0
commit 446aada9c8
8 changed files with 161 additions and 8 deletions

View file

@ -26,6 +26,10 @@ class PlanFactory extends Factory
'daily_limit' => null,
'is_active' => true,
'sort_order' => fake()->numberBetween(0, 10),
'benefits' => [
'Redaktionelle Prüfung inklusive',
fake()->sentence(4),
],
];
}