osb/resources/theme/frontend/metronic/layouts/partials/mainheader.blade.php

77 lines
2.6 KiB
PHP
Raw Normal View History

2017-12-04 12:37:14 +00:00
<!-- BEGIN TOP BAR -->
<div class="pre-header">
<div class="container">
<div class="row">
<!-- BEGIN TOP BAR LEFT PART -->
<div class="col-md-6 col-sm-6 additional-shop-info">
<ul class="list-unstyled list-inline">
2018-07-31 04:11:00 +00:00
<li><i class="fa fa-phone"></i><span>{!! $so->site_phone !!}</span></li>
<li><i class="fa fa-envelope-o"></i><span>{!! $so->site_email !!}</span></li>
2017-12-04 12:37:14 +00:00
</ul>
</div>
<!-- END TOP BAR LEFT PART -->
<!-- BEGIN TOP BAR MENU -->
<div class="col-md-6 col-sm-6 additional-nav">
<ul class="list-unstyled list-inline pull-right">
2019-09-03 04:43:59 +00:00
<li><a href="{{ url('home') }}">Log In</a></li>
2017-12-04 12:37:14 +00:00
<li><a href="{{ url('register') }}">Registration</a></li>
</ul>
</div>
<!-- END TOP BAR MENU -->
</div>
</div>
</div>
<!-- END TOP BAR -->
<!-- BEGIN HEADER -->
<div class="header">
<div class="container">
2018-08-07 04:26:33 +00:00
<a class="site-logo" href="{{ url('/') }}"><img src="{{ $so->site_logo }}" alt="{{ $so->site_description }}" height="32"></a>
2017-12-04 12:37:14 +00:00
<a href="javascript:void(0);" class="mobi-toggler"><i class="fa fa-bars"></i></a>
<!-- BEGIN NAVIGATION -->
<div class="header-navigation pull-right font-transform-inherit">
<ul>
{{-- @todo Replace this with a function that can traverse children with multiple depths --}}
2018-05-20 12:53:14 +00:00
@foreach ($so->top_menu as $item => $menu)
<li class="dropdown {{ Request::is($menu['url']) ? 'active' : '' }}">
2017-12-04 12:37:14 +00:00
2020-01-11 11:05:05 +00:00
@if (! \Illuminate\Support\Arr::get($menu,'children'))
2018-05-20 12:53:14 +00:00
<a {{ Request::is($menu['url']) ? 'class=active' : '' }} href="{{ url($menu['url']) }}">{{ $menu['name'] }}</a>
@else
<a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="javascript:;">{{ $item }}</a>
<ul class="dropdown-menu">
<li {{ (Request::is($menu['url']) ? 'class=active' : '') }}><a href="{{ url($menu['url']) }}">{{ $menu['name'] }}</a></li>
@foreach($menu['children'] as $name => $menuitem)
<li {{ (Request::is($menuitem['url']) ? 'class=active' : '') }}><a href="{{ url($menuitem['url']) }}">{{ $menuitem['name'] }}</a></li>
@endforeach
</ul>
@endif
2017-12-04 12:37:14 +00:00
2018-05-20 12:53:14 +00:00
</li>
@endforeach
2017-12-04 12:37:14 +00:00
<!-- BEGIN TOP SEARCH -->
<li class="menu-search">
<span class="sep"></span>
<i class="fa fa-search search-btn"></i>
<div class="search-box">
<form action="#">
<div class="input-group">
<input type="text" placeholder="Search" class="form-control">
<span class="input-group-btn">
2019-06-02 05:35:48 +00:00
<button class="btn btn-primary" type="submit">Search</button>
</span>
2017-12-04 12:37:14 +00:00
</div>
</form>
</div>
</li>
<!-- END TOP SEARCH -->
</ul>
</div>
<!-- END NAVIGATION -->
</div>
</div>
<!-- Header END -->