@props([ 'plans' => null, 'popular' => 'business', 'pricingHref' => null, 'submitHref' => null, ]) @php // Datengetrieben aus dem Tarif-Katalog (plans). Fällt die Tabelle leer aus, // wird die Sektion komplett ausgeblendet. $plans = $plans ?? \App\Models\Plan::active()->get(); $pricingHref ??= route('preise'); $submitHref ??= route('veroeffentlichen'); $fmtPrice = static fn (int $cents): string => number_format($cents / 100, $cents % 100 === 0 ? 0 : 2, ',', '.'); @endphp @if ($plans->isNotEmpty())

{{ __('web.pricing_teaser.title') }}

{{ __('web.pricing_teaser.details') }}

@foreach ($plans as $plan) @php $isPopular = $plan->slug === $popular; $hasMonthly = (int) $plan->monthly_price_cents > 0; @endphp
@if ($isPopular) {{ __('web.pricing_teaser.popular') }} @endif
{{ $plan->name }}
{{ $fmtPrice((int) $plan->monthly_price_cents) }} € @if ($hasMonthly) / {{ __('web.pricing_teaser.month') }} @endif
@if ($hasMonthly && (int) $plan->yearly_price_cents > 0)
{{ $fmtPrice((int) $plan->yearly_price_cents) }} € / {{ __('web.pricing_teaser.year') }} · {{ __('web.pricing_teaser.two_months_free') }}
@else
@endif
  • {{ $plan->press_release_quota }} {{ __('web.pricing_teaser.quota') }}
  • @if ($plan->daily_limit !== null)
  • {{ $plan->daily_limit }} {{ __('web.pricing_teaser.daily_limit') }}
  • @else
  • ∞ {{ __('web.pricing_teaser.no_daily_limit') }}
  • @endif
{{ __('web.pricing_teaser.select') }}
@endforeach

{{ __('web.pricing_teaser.footnote') }}

{{ __('web.pricing_teaser.publish_direct') }}
@endif