7; $unit = Unit::where('name', $this->faker->randomElement(['Stück', 'Stunden', 'Tage', 'pauschal']))->first(); return [ 'position' => $this->faker->numberBetween(1, 10) + ($isSection ? 0.5 : 0), 'is_section' => $isSection, 'title' => $this->faker->words(3, true), 'description' => $this->faker->sentence(), 'quantity' => $this->faker->numberBetween(1, 10), 'unit_id' => $unit ? $unit->id : null, 'price' => $this->faker->randomFloat(2, 10, 500), ]; } }