ND-Link
@auth {{ __('Home') }} @endauth
@php $meActive = request()->routeIs('signal-plan.*') || request()->routeIs('thoughts.*') || request()->routeIs('emotions.*') || request()->routeIs('ik.*') || request()->routeIs('sensory-profile.*') || request()->routeIs('me.mbti*') || request()->routeIs('energy-agenda.*'); @endphp
{{ __('My energy agenda') }} {{ __('My thoughts') }} {{ __('My emotions') }} {{ __('My signal plan') }} {{ __('My personality type') }} {{ __('My sensory profile') }}
{{ __('My relaxation') }} {{ __('Coming soon') }} {{ __('Breathing and mindfulness techniques') }} {{ __('My conversation starters') }} {{ __('Coming soon') }} {{ __('Pick starters from themed lists') }}
{{ __('S O S') }}
{{ __('My data') }}
{{ __('Others') }} {{-- Community dropdown: Care providers + Groups (auth) + Events --}} @php $communityActive = request()->routeIs('pro.*') || request()->routeIs('groups.*') || request()->routeIs('events.*') || request()->routeIs('community.*'); @endphp
{{ __('Care providers') }} {{ __('Organisations') }}
@auth {{ __('Feed') }} {{ __('Groups') }} @endauth {{ __('Events') }}
@auth {{-- Chat — premium only feature, visible to all auth users (redirects to upgrade if needed) --}} @auth @php try { $__uid = auth()->id(); $__user = auth()->user(); $__chatUnread = \App\Models\Conversation::where( fn ($q) => $q->where('user_one_id', $__uid)->orWhere('user_two_id', $__uid) ) ->where(fn ($q) => $q // Only count conversations with an active mutual like ->whereRaw("EXISTS ( SELECT 1 FROM likes la JOIN likes lb ON lb.from_user_id = la.to_user_id AND lb.to_user_id = ? WHERE la.from_user_id = ? AND la.to_user_id = IF(conversations.user_one_id = ?, conversations.user_two_id, conversations.user_one_id) )", [$__uid, $__uid, $__uid]) // OR the other party is a PRO with open messaging ->orWhereRaw("EXISTS ( SELECT 1 FROM users u WHERE u.id = IF(conversations.user_one_id = ?, conversations.user_two_id, conversations.user_one_id) AND u.is_pro = 1 AND u.allow_messages = 1 )", [$__uid]) ) ->get() ->sum(fn ($c) => $c->unreadCountFor($__user)); } catch (\Throwable) { $__chatUnread = 0; } @endphp @if ($__chatUnread > 0) {{ $__chatUnread > 9 ? '9+' : $__chatUnread }} @elseif($__chatUnread === 0) {{-- Placeholder so JS can insert/remove without re-rendering --}} @endif @endauth {{ __('Chat') }} @endauth
@auth {{-- Admin shortcut — only for users with admin access --}} @if (Auth::user()->hasAdminAccess()) {{ __('Admin') }}
@endif {{-- 1–3: Account --}} @if (Auth::user()->isOrg()) {{ __('My profile') }} @elseif (Auth::user()->is_pro) {{ __('My profile') }} @else {{ __('My profile') }} @endif {{ __('My account') }} @if (Auth::user()->is_pro || Auth::user()->is_premium) @if (Auth::user()->isOrg()) {{ __('My Subscription') }} 🏢 @elseif (Auth::user()->is_pro) {{ __('My Subscription') }} 🏅 @else {{ __('My Subscription') }} 💎 @endif @else {{ __('Upgrade') }} @endif
{{-- 5: App settings --}} {{ __('Appearance') }} {{ __('Notifications') }} {{-- 6: Help --}} {{ __('Help') }}
{{-- 8: About --}} {{ __('About ND-Link') }} {{ __('Terms & Conditions') }} {{ __('Privacy policy') }} {{ __('Contact') }} {{ __('Site map') }}
{{-- 10: Logout --}}
@csrf {{ __('Log Out') }}
@else {{ __('Register') }} {{ __('Log in') }}
{{ __('Appearance') }} {{ __('Help') }}
{{ __('About ND-Link') }} {{ __('Terms & Conditions') }} {{ __('Privacy policy') }} {{ __('Contact') }} {{ __('Site map') }}
@endauth
@auth @if (Auth::user()->hasAdminAccess()) {{ __('Admin') }} @endif {{ __('Home') }} @endauth {{-- Ik-sectie --}}
{{ __('Energy agenda') }} {{ __('My thoughts') }} {{ __('My emotions') }} {{ __('My signal plan') }} {{ __('My personality type') }} {{ __('My sensory profile') }}
{{ __('My relaxation') }} {{ __('Coming soon') }} {{ __('My conversation starters') }} {{ __('Coming soon') }}
{{ __('S O S') }}
{{ __('My data') }}
{{ __('Others') }} {{-- Community dropdown in hamburger menu --}} @php $communityMobileActive = request()->routeIs('pro.*') || request()->routeIs('groups.*') || request()->routeIs('events.*'); @endphp
{{ __('Care providers') }} {{ __('Organisations') }}
@auth {{ __('Feed') }} {{ __('Groups') }} @endauth {{ __('Events') }}
@guest
{{ __('Appearance') }} {{ __('Help') }}
{{ __('About ND-Link') }} {{ __('Terms & Conditions') }} {{ __('Privacy policy') }} {{ __('Contact') }} {{ __('Site map') }}
@endguest @auth {{ __('Chat') }} @if (isset($__chatUnread) && $__chatUnread > 0) {{ $__chatUnread > 9 ? '9+' : $__chatUnread }} @else @endif @endauth
@auth {{--
{{ Auth::user()->name }}
{{ Auth::user()->email }}
--}}
{{-- 1–3: Account --}} @if (Auth::user()->isOrg()) {{ __('My profile') }} @elseif (Auth::user()->is_pro) {{ __('My profile') }} @else {{ __('My profile') }} @endif {{ __('My account') }} @if (Auth::user()->is_pro || Auth::user()->is_premium) @if (Auth::user()->isOrg()) {{ __('My Subscription') }} 🏢 @elseif (Auth::user()->is_pro) {{ __('My Subscription') }} 🏅 @else {{ __('My Subscription') }} 💎 @endif @else {{ __('Upgrade') }} @endif
{{-- 5: App settings --}} {{ __('Appearance') }} {{ __('Notifications') }} {{-- 6: Help --}} {{ __('Help') }}
{{-- 8: About --}} {{ __('About ND-Link') }} {{ __('Terms & Conditions') }} {{ __('Privacy policy') }} {{ __('Contact') }} {{ __('Site map') }}
{{-- 10: Logout --}}
@csrf {{ __('Log Out') }}
@else
{{ __('Register') }} {{ __('Log in') }}
@endauth