12-05-2026 Frontend dev
This commit is contained in:
parent
405df0a122
commit
5b8bdf4182
779 changed files with 480564 additions and 6241 deletions
|
|
@ -1,5 +1,32 @@
|
|||
<x-layouts.app.sidebar :title="$title ?? null">
|
||||
<flux:main>
|
||||
@php
|
||||
$user = auth()->user();
|
||||
$canCustomer = $user?->canAccessCustomer() ?? false;
|
||||
@endphp
|
||||
|
||||
@if($canCustomer)
|
||||
<div class="mb-6 rounded-xl border border-zinc-200 bg-zinc-50/80 px-4 py-3 shadow-sm ring-1 ring-zinc-950/5 dark:border-zinc-700 dark:bg-zinc-900/60 dark:ring-white/10">
|
||||
<div class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
|
||||
<div class="min-w-0">
|
||||
<div class="flex items-center gap-2">
|
||||
<flux:badge color="zinc" size="sm">{{ __('User Backend') }}</flux:badge>
|
||||
<flux:text class="hidden text-xs text-zinc-500 dark:text-zinc-400 sm:block">
|
||||
{{ __('Firmenkontext') }}
|
||||
</flux:text>
|
||||
</div>
|
||||
<flux:heading size="sm" class="mt-1 truncate">
|
||||
{{ $title ?? __('Mein Bereich') }}
|
||||
</flux:heading>
|
||||
</div>
|
||||
|
||||
<div class="w-full sm:w-auto">
|
||||
<livewire:customer.company-switcher />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{ $slot }}
|
||||
</flux:main>
|
||||
</x-layouts.app.sidebar>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue