@php $user = auth()->user(); @endphp
@lang('logo') @lang('logo')
@if (@$user->profile_complete) @elseif(auth()->check() && !@$user->profile_complete) @lang('Create Channel') @endif @if (!auth()->check()) @lang('Login') @endif @php $notifications = collect(); $notificationCount = 0; @endphp @auth @php $notificationsQuery = App\Models\UserNotification::where('user_id', $user->id)->with('user'); $notificationCount = (clone $notificationsQuery)->where('is_read', Status::NO)->count(); $notifications = $notificationsQuery->latest()->take(5)->get(); $showCount = $notificationCount > 9 ? '9+' : $notificationCount; @endphp
@endauth
@if (request()->routeIs('home')) @php $categories = App\Models\Category::active()->get(); @endphp @if ($categories->count() > 0) @endif @endif
@push('style') @endpush @push('script') @endpush