@php $user = auth()->user(); $initials = collect(preg_split('/\s+/', trim((string) $user?->name)) ?: []) ->filter() ->take(2) ->map(fn (string $part) => mb_strtoupper(mb_substr($part, 0, 1))) ->implode(''); @endphp
{{-- Global search is the primary navigation in this product. A receptionist should reach any patient by MRN, name or phone without leaving the keyboard, so "/" focuses it from anywhere. The endpoint belongs to whichever module provides it, and the guard means the box simply disappears when that module is not installed. Known coupling: core names one module's route. It stays this way until a second searchable module exists, at which point it becomes a registry modules contribute to — building that registry for one provider would be machinery with nothing to manage. --}} @if (Route::has('patients.search')) @endif
@auth @if ($user->branch !== null) {{ $user->branch->name }} @endif @endauth