<!-- header section start-->
<div class="header-section">

    <!--toggle button start-->
    <a class="toggle-btn"><i class="fa fa-bars"></i></a>
    <!--toggle button end-->


    <!--notification menu start -->

    <div class="menu-right">

        <ul class="notification-menu">

            @if(Auth::user()-> can('manage-promotoria'))
            <li>
                <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                    {{ Auth::user()->promotoria -> razonSocial }}
                    <span class="caret"></span>
                </a>
                <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                    @foreach($promotoria_main as $promotoria)
                        <li><a href="{{ url('auth/user/changePromotoria/'.$promotoria -> id) }}"><i class="fa fa-key"></i> <span> {{ $promotoria -> razonSocial }}</span></a></li>
                    @endforeach
                </ul>
            </li>
            @endif
            <li>
                <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                    {{ Auth::user()->firstname.' ' .Auth::user()->lastname }}
                    <span class="caret"></span>
                </a>
                <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                    <li><a href="{{ url('auth/user/change-password') }}"><i class="fa fa-key"></i> <span>{{ trans('ui.header_top.change_password') }}</span></a></li>
                    <li><a href="{{ url('auth/logout') }}"><i class="fa fa-sign-out"></i> {{ trans('ui.header_top.logout') }}</a></li>
                </ul>
            </li>

        </ul>
    </div>
</div>
<!-- header section end-->