@props([ 'title' => config('app.name', 'RD Inventory'), 'userRole' => null, // optional override ]) @php $u = auth()->user(); $isDistrict = $u?->isDistrictUser() ?? false; $isStation = $u?->isStationUser() ?? false; $roleLabel = $userRole ?? ($isDistrict ? 'Bezirksstelle' : 'Ortstelle'); // Helpers: aktiver Link $isActive = function (string $pattern) { return request()->routeIs($pattern); }; $navClass = function (bool $active = false) { return $active ? 'flex items-center gap-3 rounded-2xl px-4 py-3 text-sm font-semibold bg-neutral-50 border border-rk' : 'flex items-center gap-3 rounded-2xl px-4 py-3 text-sm font-medium border border-transparent hover:bg-neutral-50'; }; $dot = function (bool $active = false) { return $active ? 'bg-rk-red' : 'bg-neutral-300'; }; @endphp