@props([ 'guard' => 'web', 'variant' => 'admin', 'showHomeButton' => false, 'showDashboardLink' => true, 'showProfileLink' => false, 'showMemberLink' => true, 'homeUrl' => url('/'), 'homeLabel' => '사이트 홈', 'dashboardUrl' => url('/'), 'dashboardLabel' => '대시보드', 'profileUrl' => url('/'), 'profileLabel' => '정보수정', 'memberUrl' => url('/'), 'memberLabel' => '회원관리', 'logoutUrl' => url('/'), ]) @php $auth = auth($guard); $currentUser = $auth->user(); $isAuthenticated = $auth->check(); $profileInitial = mb_substr($currentUser?->name ?? 'U', 0, 1); $menuTriggerClass = 'grid h-10 w-10 cursor-pointer place-items-center rounded-full bg-primary-soft text-sm font-extrabold c-primary transition-colors hover:bg-primary-soft/80'; $menuPanelClass = 'absolute right-0 top-[calc(100%+0.5rem)] z-50 hidden w-44 overflow-hidden rounded-xl border border-muted bg-card p-1 text-[rgb(var(--color-text-main-rgb))] shadow-[0_18px_40px_rgba(15,23,42,0.12)]'; @endphp
@if ($showHomeButton) @endif @if ($isAuthenticated)
@if ($showDashboardLink) {{ $dashboardLabel }} @endif @if ($showProfileLink) {{ $profileLabel }} @endif @if ($showMemberLink) {{ $memberLabel }} @endif
@csrf
@endif
@once @push('scripts') @endpush @endonce