@php
$navSection = match(true) {
request()->is('discover', 'discover/*') => 'discover',
request()->is('browse', 'photography', 'wallpapers', 'skins', 'other', 'tags', 'tags/*') => 'browse',
request()->is('creators', 'creators/*', 'stories', 'stories/*', 'following', 'leaderboard') => 'creators',
request()->is('forum', 'forum/*', 'news', 'news/*') => 'community',
default => null,
};
@endphp
@if(($favCount ?? 0) > 0)
{{ $favCount }}
@endif
@php
$toolbarMessagesProps = [
'initialUnreadCount' => (int) ($msgCount ?? 0),
'userId' => (int) ($userId ?? Auth::id() ?? 0),
'href' => Route::has('messages.index') ? route('messages.index') : '/messages',
];
@endphp
(int) ($noticeCount ?? 0)])'>