@php $firstName = trim(Auth::user()->first_name ?: (explode(' ', trim(Auth::user()->name))[0] ?? '')); $navProfileComplete = app(\App\Support\ProfileCompletion::class)->isComplete(Auth::user()); $navFamilyReady = Auth::user()->hasFamilyWithChild(); $navFamiliesCount = Auth::user()->linkedEmployers()->wherePivotNull('unlinked_at')->whereNull('archived_at')->count(); $navSubtitle = 'Assistante maternelle'.($navFamiliesCount > 0 ? ' · '.$navFamiliesCount.' famille'.($navFamiliesCount > 1 ? 's' : '') : ''); $navChevron = ''; @endphp