@php $user = auth()->user(); $initials = collect(explode(' ', trim((string) $user?->name))) ->filter()->take(2)->map(fn ($p) => strtoupper(substr($p, 0, 1)))->implode(''); @endphp
@include('partials.mobile-topbar-title', ['heading' => $heading ?? null]) @if (auth()->check() && app(\App\Services\Care\CarePermissions::class)->can( app(\App\Services\Care\OrganizationResolver::class)->memberFor(auth()->user()), 'patients.view')) @endif
@includeIf('partials.topbar-widgets-prepend') @include('partials.topbar-desktop-widgets', ['user' => $user, 'showUser' => true]) @includeIf('partials.topbar-widgets-append')