Status-Widget: immer verfuegbarer Buchungsueberblick in der Topbar
Ein Header-Dropdown oben rechts (Desktop) bzw. im Mobile-Header zeigt fuer alle Kunden-Panel-User den aktuellen Status: aktuelle Buchung/Tarif, verbleibendes PM-Kontingent und Credit-Guthaben. Ohne aktive Buchung weist es direkt auf die noetige Buchung hin und verlinkt die Buchungsseite. CustomerStatusSummary buendelt die Anzeige-Werte ueber die oeffentliche User-API (Gating bleibt Single Source of Truth im Modell); die anonyme Blade-Komponente x-customer.status-menu rendert das Dropdown. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
bcac326814
commit
4ab746077c
4 changed files with 321 additions and 0 deletions
|
|
@ -307,6 +307,15 @@
|
|||
</flux:dropdown>
|
||||
</flux:sidebar>
|
||||
|
||||
{{-- Desktop-Topbar: immer verfügbarer Status (Buchung, freie PMs, Credits)
|
||||
oben rechts. Nur für Panel-User mit Kundenbereich. --}}
|
||||
@if ($canCustomer)
|
||||
<flux:header class="hidden xl:flex">
|
||||
<flux:spacer />
|
||||
<x-customer.status-menu :user="$user" />
|
||||
</flux:header>
|
||||
@endif
|
||||
|
||||
<!-- Mobile User Menu -->
|
||||
<flux:header class="xl:hidden">
|
||||
<flux:sidebar.toggle class="xl:hidden" icon="bars-2" inset="left" />
|
||||
|
|
@ -317,6 +326,9 @@
|
|||
</span>
|
||||
</a>
|
||||
<flux:spacer />
|
||||
@if ($canCustomer)
|
||||
<x-customer.status-menu :user="$user" />
|
||||
@endif
|
||||
|
||||
<flux:dropdown position="top" align="end">
|
||||
<flux:profile :initials="auth()->user()->initials()" icon-trailing="chevron-down" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue