一些数据正在页面上加载,但未呈现--laravel

时间:2019-11-11 19:37:57

标签: laravel

我正在与我的终端一起尝试使其他东西工作。 (我认为在“清除缓存--force”时出错。我不再显示导航栏。信息已发送到页面,但未呈现。是否有任何方法可以纠正此问题? / p>

我的app.blade.php

<header class="header header-transparent">
      <div class="container-fluid">
          <!-- Brand-->
          <div class="inner-header"><a class="inner-brand" href="/"><img src="{{ asset('dist/assets/images/LushGardens_Logo/logo_h.png') }}" alt="" width="156px" height="31"></a></div>
          <!-- Navigation-->
          <div class="inner-navigation collapse">
              <div class="inner-nav">
                <ul>
                    <li><a href="/"><span class="menu-item-span">Home</span></a></li>
                    <li><a href="/products"><span class="menu-item-span">Products</span></a></li>
                    <li><a href="/faq"><span class="menu-item-span">FAQs</span></a></li>
                    <li><a href="/recipes"><span class="menu-item-span">Recipes</span></a></li>
                    <li><a href="/team"><span class="menu-item-span">Team</span></a></li>
                    <li><a href="/contact"><span class="menu-item-span">Contact</span></a></li>
                    @guest
                        <li class="menu-item-has-children"><a class="nav-link" href="{{ route('login') }}"><span class="menu-item-span">{{ __('Login') }}</span></a>
                            <ul class="sub-menu">
                                <li><a class="nav-link" href="{{ route('register') }}"><span class="menu-item-span">{{ __('Register') }}</span></a></li>
                            </ul>
                          </li>
                    @else
                        <li class="menu-item-has-children"><a class="nav-link" href="#"><span class="caret menu-item-span">{{ Auth::user()->name }}</span></a>
                            <ul class="sub-menu">
                                <li><a class="dropdown-item" href="{{ route('logout') }}"
                                   onclick="event.preventDefault();
                                                 document.getElementById('logout-form').submit();">
                                    {{ __('Logout') }}
                                </a></li>
                                <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                                    @csrf
                                </form>
                            </ul>
                        </li>
                    @endguest
                  </ul>
                </div>
              </div>
              <div class="extra-nav">
                  <ul>
                      <li><a class="top-bar-cart" href="shop-cart-1.html"><span class="menu-item-span"><i class="ti-shopping-cart"></i><span>3</span></span></a></li>
                      <!-- <li><a class="off-canvas-open" href="#"><span class="menu-item-span"><i class="ti-menu"></i></span></a></li> -->
                      <li class="nav-toggle"><a href="#" data-toggle="collapse" data-target=".inner-navigation"><span class="menu-item-span"><i class="ti-menu"></i></span></a></li>
                  </ul>
              </div>
      </div>
  </header>

0 个答案:

没有答案