<div class="a-top__left">
    <div class="a-top__title">
        <div class="a-top__h">@yield('page_title', '콘솔')</div>
        <div class="a-top__sub a-muted">@yield('page_desc', '관리자 콘솔')</div>
    </div>
</div>

<div class="a-top__right">
    <div class="a-top__user">
        @php $u = auth('admin')->user(); @endphp
        <div class="a-top__userName">{{ ($u->nickname ?? '') !== '' ? $u->nickname : ($u->name ?? 'Admin') }}</div>
        <div class="a-top__userMeta a-muted">{{ $u->email ?? '' }}</div>
        <div class="a-top__userText">
            <div class="a-top__userName">{{ auth('admin')->user()->name ?? 'Admin' }}</div>
        </div>

        <form method="POST" action="{{ route('admin.logout') }}">
            @csrf
            <button class="a-top__logout" type="submit">로그아웃</button>
        </form>
    </div>
</div>
