@php
$user = auth()->user();
$ws = optional($user->workStation);
$wsName = $ws->name ?? 'No Work Station';
$wsLocation = $ws->location ?? null;
$initials = collect(explode(' ', trim($user->name)))
->filter()
->map(fn($p) => strtoupper(mb_substr($p, 0, 1)))
->take(2)
->implode('');
if (!$initials) $initials = strtoupper(mb_substr($user->name, 0, 1));
@endphp