Support the ongoing development of Laravel.io →
Session
Last updated 2 years ago.
0

@section('navbar')

<header id="header">
    <div class="header_top">
        <div class="container">
            <div class="row">
                <div class="col-sm-3">
                    <div class="contactinfo">
                        <ul class="nav nav-pills">
                            <a href="{{ url('/') }}"><img style="size: 30" width="130px"
                                                          src="{{url('images/logo.png')}}"
                                                          alt=""/></a>

                        </ul>
                    </div>
                </div>
                <div class="col-sm-5">

                    <!--form-->
                    {!! Form::open(array('url' => 'busca/produto', 'method' => 'get', 'class'=>'form-horizontal')) !!}

                    <input type="text" class="form-search" name="busca_produto" value="" max-length="120"/>
                    <button id="submit" type="submit" class="btn btn-default"><span
                                class="glyphicon glyphicon-search"></span>&nbsp;
                    </button>
                    {!! Form::close() !!}

                <!--endform-->
                </div>
                <div class="col-sm-4 pull-right">
                    <div class="shop-menu pull-right">
                        <ul class="nav navbar-nav collapse navbar-collapse">
                            <li>
                                <a href="{{url('/compra/acompanhamento')}}"><i class="fa fa-shopping-cart"></i>
                                    Pedidos</a>
                            </li>
                            @if(Auth::check())
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                       aria-expanded="false">
                                        {{ Auth::user()->usuario }} <span class="caret"></span>
                                    </a>

                                    <ul class="dropdown-menu" role="menu">
                                        <li><a href="{{ url('/home') }}"><i class="fa fa-btn fa-home"></i>Principal</a>
                                        </li>
                                        <li><a href="{{ url('/logout') }}"><i
                                                        class="fa fa-btn fa-sign-out"></i>Logout</a>
                                        </li>
                                    </ul>
                                </li>
                            @else
                                <li>
                                    <a href="{{ url('/home') }}">
                                        <i class="fa fa-user"></i> Login</a>
                                </li>
                                <li>
                                    <button class="btn btn-success-barra">
                                        <a href="{{ url('/register') }}"><font color="white">
                                                <i class="fa fa-plus"></i> Cadastrar-se</font>
                                        </a>
                                    </button>
                                </li>
                            @endif
                            <br><br>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>


</header>

@endsection

0

was missing

public function __construct() { $this->middleware('auth:api'); }

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.