diff --git a/resources/views/components/header.blade.php b/resources/views/components/header.blade.php index bb4efa4..56f0a4c 100644 --- a/resources/views/components/header.blade.php +++ b/resources/views/components/header.blade.php @@ -17,19 +17,30 @@ class="max-h-0 duration-300 absolute flex flex-col gap-1 bg-white mt-4 text-gray
Selektif Admin @endcan - @auth -
- Notifikasi - @if (auth()->user()->profile->cabang && auth()->user()->profile->cabang->notreadnotifications->count() > 0) -

- @endif -
- @endauth Demosi Promosi + @auth + @php + $hasNotification = + auth()->user()->profile->cabang && + auth()->user()->profile->cabang->notreadnotifications->count() > 0; + @endphp + + + @if (auth()->user()->profile->cabang && auth()->user()->profile->cabang->notreadnotifications->count() > 0) +

+ @endif +
+ @endauth