2019-04-07 18:34:40 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								<header id="header" header-mobile-toggle class="primary-background">
							 | 
						
					
						
							
								
									
										
										
										
											2019-04-07 16:57:48 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    <div class="grid mx-l">
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-04 01:34:15 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        <div>
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-04 21:26:39 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								            <a href="{{ url('/') }}" class="logo">
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                @if(setting('app-logo', '') !== 'none')
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-04 21:26:39 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                    <img class="logo-image" src="{{ setting('app-logo', '') === '' ? url('/logo.png') : url(setting('app-logo', '')) }}" alt="Logo">
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                @endif
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                @if (setting('app-name-header'))
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                    <span class="logo-text">{{ setting('app-name') }}</span>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                @endif
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            </a>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            <div class="mobile-menu-toggle hide-over-l">@icon('more')</div>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        </div>
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-04 01:34:15 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        <div class="header-search hide-under-l">
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-04 01:34:15 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            @if (hasAppAccess())
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								            <form action="{{ url('/search') }}" method="GET" class="search-box" role="search">
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-25 01:26:28 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                <button id="header-search-box-button" type="submit" aria-label="{{ trans('common.search') }}" tabindex="-1">@icon('search') </button>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                <input id="header-search-box-input" type="text" name="term"
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-19 02:17:43 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                       aria-label="{{ trans('common.search') }}" placeholder="{{ trans('common.search') }}"
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                       value="{{ isset($searchTerm) ? $searchTerm : '' }}">
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            </form>
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-04 01:34:15 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            @endif
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        </div>
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-04 01:34:15 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        <div class="text-right">
							 | 
						
					
						
							
								
									
										
										
										
											2020-03-07 17:43:42 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								            <nav class="header-links">
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                <div class="links text-center">
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-04 01:34:15 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                    @if (hasAppAccess())
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-04 21:26:39 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                        <a class="hide-over-l" href="{{ url('/search') }}">@icon('search'){{ trans('common.search') }}</a>
							 | 
						
					
						
							
								
									
										
										
										
											2019-03-11 05:40:02 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                        @if(userCanOnAny('view', \BookStack\Entities\Bookshelf::class) || userCan('bookshelf-view-all') || userCan('bookshelf-view-own'))
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-04 21:26:39 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                            <a href="{{ url('/shelves') }}">@icon('bookshelf'){{ trans('entities.shelves') }}</a>
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-04 01:34:15 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                        @endif
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-04 21:26:39 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                        <a href="{{ url('/books') }}">@icon('books'){{ trans('entities.books') }}</a>
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-04 01:34:15 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                        @if(signedInUser() && userCan('settings-manage'))
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-04 21:26:39 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                            <a href="{{ url('/settings') }}">@icon('settings'){{ trans('settings.settings') }}</a>
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-04 01:34:15 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                        @endif
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                        @if(signedInUser() && userCan('users-manage') && !userCan('settings-manage'))
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-04 21:26:39 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                            <a href="{{ url('/settings/users') }}">@icon('users'){{ trans('settings.users') }}</a>
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-04 01:34:15 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                        @endif
							 | 
						
					
						
							
								
									
										
										
										
											2019-01-13 22:10:27 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                    @endif
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-04 01:34:15 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                    @if(!signedInUser())
							 | 
						
					
						
							
								
									
										
										
										
											2020-02-02 18:59:03 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                        @if(setting('registration-enabled') && config('auth.method') === 'standard')
							 | 
						
					
						
							
								
									
										
										
										
											2020-03-07 17:43:42 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                            <a href="{{ url('/register') }}">@icon('new-user'){{ trans('auth.sign_up') }}</a>
							 | 
						
					
						
							
								
									
										
										
										
											2019-01-13 22:10:27 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                        @endif
							 | 
						
					
						
							
								
									
										
										
										
											2020-03-15 02:29:31 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                        <a href="{{ url('/login')  }}">@icon('login'){{ trans('auth.log_in') }}</a>
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                    @endif
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                </div>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                @if(signedInUser())
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                    <?php $currentUser = user(); ?>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                    <div class="dropdown-container" dropdown>
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-25 01:26:28 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                        <span class="user-name py-s hide-under-l" dropdown-toggle
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                              aria-haspopup="true" aria-expanded="false" aria-label="{{ trans('common.profile_menu') }}" tabindex="0">
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                            <img class="avatar" src="{{$currentUser->getAvatar(30)}}" alt="{{ $currentUser->name }}">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                            <span class="name">{{ $currentUser->getShortName(9) }}</span> @icon('caret-down')
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                        </span>
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-25 01:26:28 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                        <ul class="dropdown-menu" role="menu">
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                            <li>
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-04 21:26:39 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                                <a href="{{ url("/user/{$currentUser->id}") }}">@icon('user'){{ trans('common.view_profile') }}</a>
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                            </li>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                            <li>
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-04 21:26:39 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                                <a href="{{ url("/settings/users/{$currentUser->id}") }}">@icon('edit'){{ trans('common.edit_profile') }}</a>
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                            </li>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                            <li>
							 | 
						
					
						
							
								
									
										
										
										
											2020-02-02 18:59:03 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                                @if(config('auth.method') === 'saml2')
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                                    <a href="{{ url('/saml2/logout') }}">@icon('logout'){{ trans('auth.logout') }}</a>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                                @else
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                                    <a href="{{ url('/logout') }}">@icon('logout'){{ trans('auth.logout') }}</a>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                                @endif
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                            </li>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                        </ul>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                    </div>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                @endif
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            </nav>
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        </div>
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-04 01:34:15 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-17 01:49:16 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    </div>
							 | 
						
					
						
							
								
									
										
										
										
											2020-03-07 17:43:42 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								</header>
							 |