@php
  // 引数：トップページかどうか
  $isTop = $isTop ?? false;
@endphp

<header class="l-header">
    <div class="l-header__background">
        <div class="l-header__container d-flex justify-content-between align-items-center">
            <!-- Site Name -->
            <h1 class="l-header__h1">
                @if(!$isTop)
                <a class="l-header__logo" href="/business/top"><span class="l-header__span">MANAGEMENT</span>&nbsp;SYSTEM</a>
                @endif
            </h1>
            <div>
                <span class="l-header__name">{{ Auth::user()->name }}</span>
                <a class="d-none d-lg-inline l-header__logout mr10" href="/admin/top">
                    管理画面
                </a>
                <a class="d-none d-lg-inline l-header__logout" href="{{ route('logout') }}"
                    onclick="event.preventDefault();
                                document.getElementById('logout-form').submit();">
                    {{ __('messages.Logout') }}
                </a>
            </div>
        </div>
    </div>
  </header>