complete story 6.3 with qa tests
This commit is contained in:
@@ -47,6 +47,26 @@
|
||||
|
||||
<flux:spacer />
|
||||
|
||||
@if (auth()->user()->isAdmin())
|
||||
@php
|
||||
$pendingCount = \App\Models\Consultation::pending()->count();
|
||||
@endphp
|
||||
<div class="px-3 py-2">
|
||||
<a
|
||||
href="{{ route('admin.bookings.pending') }}"
|
||||
class="relative inline-flex items-center rounded-lg p-2 text-zinc-600 transition-colors hover:bg-zinc-100 dark:text-zinc-400 dark:hover:bg-zinc-800"
|
||||
wire:navigate
|
||||
>
|
||||
<flux:icon name="bell" class="h-5 w-5" />
|
||||
@if ($pendingCount > 0)
|
||||
<span class="absolute -top-1 end-0 flex h-5 min-w-5 items-center justify-center rounded-full bg-red-500 px-1 text-xs font-medium text-white">
|
||||
{{ $pendingCount > 99 ? '99+' : $pendingCount }}
|
||||
</span>
|
||||
@endif
|
||||
</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<flux:navlist variant="outline">
|
||||
<flux:navlist.item icon="folder-git-2" href="https://github.com/laravel/livewire-starter-kit" target="_blank">
|
||||
{{ __('Repository') }}
|
||||
@@ -115,6 +135,24 @@
|
||||
|
||||
<flux:spacer />
|
||||
|
||||
@if (auth()->user()->isAdmin())
|
||||
@php
|
||||
$mobilePendingCount = \App\Models\Consultation::pending()->count();
|
||||
@endphp
|
||||
<a
|
||||
href="{{ route('admin.bookings.pending') }}"
|
||||
class="relative inline-flex items-center rounded-lg p-2 text-zinc-600 transition-colors hover:bg-zinc-100 dark:text-zinc-400 dark:hover:bg-zinc-800"
|
||||
wire:navigate
|
||||
>
|
||||
<flux:icon name="bell" class="h-5 w-5" />
|
||||
@if ($mobilePendingCount > 0)
|
||||
<span class="absolute -top-1 end-0 flex h-5 min-w-5 items-center justify-center rounded-full bg-red-500 px-1 text-xs font-medium text-white">
|
||||
{{ $mobilePendingCount > 99 ? '99+' : $mobilePendingCount }}
|
||||
</span>
|
||||
@endif
|
||||
</a>
|
||||
@endif
|
||||
|
||||
<!-- Mobile Language Toggle -->
|
||||
<x-language-toggle />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user