@php $navHousehold = \App\Models\Employer::where('linked_parent_user_id', Auth::id())->whereNull('archived_at')->first() ?? Auth::user()->employers()->whereNull('archived_at')->first(); $firstName = trim(Auth::user()->first_name ?: (explode(' ', trim(Auth::user()->name))[0] ?? '')); $navProfileComplete = app(\App\Support\HouseholdProfileCompletion::class)->summary($navHousehold)['is_complete']; $navChildrenCount = $navHousehold?->children()->whereNull('archived_at')->count() ?? 0; $navSubtitle = 'Parent'.($navChildrenCount > 0 ? ' · '.$navChildrenCount.' enfant'.($navChildrenCount > 1 ? 's' : '') : ''); $navChevron = ''; @endphp
@if ($backUrl ?? null) @endif naneasy