@props(['user' => null]) @php $user ??= auth()->user(); $status = $user ? \App\Services\Customer\CustomerStatusSummary::fromUser($user) : null; @endphp @if ($status) {{-- Trigger: kompaktes Status-Badge in der Topbar --}} {{-- Aktuelle Buchung --}}
{{ __('Aktuelle Buchung') }}
{{ $status->bookingLabel() }} @if ($status->billingIntervalLabel()) · {{ $status->billingIntervalLabel() }} @endif @if ($status->hasActiveBooking) {{ __('aktiv') }} @else {{ __('keine') }} @endif
{{-- Kennzahlen: PM-Kontingent & Credits --}}
{{ __('PMs frei') }}
@if ($status->unlimitedQuota) ∞ @else {{ $status->quotaRemaining }} / {{ $status->quotaTotal }} @endif
{{ __('Guthaben') }}
{{ $status->creditBalance }} Cr
@unless ($status->hasActiveBooking)
{{ __('Zum Veröffentlichen brauchst du eine Buchung.') }}
@endunless {{ __('Buchungen & Add-ons') }}
@endif