@php
  $multi = isset($multi) ? $multi : false;
  $curIndex = isset($curIndex) ? $curIndex : 0;
@endphp

<header>
  @if(isset($link) && !empty($link))
    <a href="{{$link}}">
  @else
      <a href="javascript:history.back();">
  @endif
    <img src="data:image/png;base64,[encoded data, 5328 characters]">
  </a>
  @if($multi)
    <div class="book-shelf-head">
      @if($curIndex==0)
        <a href="/recent" class="book-shelf-head__item is-active">最近阅读</a>
        <a href="/shelf" class="book-shelf-head__item">我的书架</a>
      @else
        <a href="/recent" class="book-shelf-head__item">最近阅读</a>
        <a href="/shelf" class="book-shelf-head__item is-active">我的书架</a>
      @endif
    </div>
  @else
    <span class="single-line">{{$name}}</span>
  @endif
  <a href="/" >
    <img src="data:image/png;base64,[encoded data, 5648 characters]">
  </a>
</header>
<hr style="border-color: rgb(233, 233, 233);">