<a href="#header" class="pagetop" style="display: none"><img src="{{ asset('img/pagetop.png') }}" alt="Go Top"></a>
@if(Route::currentRouteName() == 'site.name')
<a href="#" class="mobilebutton"><img src="{{ asset('img/mobilemenu.png') }}" alt="mobile"></a>
@endif

<!-- START HEADER -->
<div id="header">
    <div class="container">
        <div class="row">

            <div class="col-md-6">
                <ul class="menu">
                    <li class="logo"><a href="{{ route('index') }}"><img src="{{ asset('img/' . $layout->site_logo) }}" alt="logo"></a></li>
                    <li><a href="{{ route('index') }}">@language('home')</a></li>
                    <li><a href="{{ route('site.country') }}">@language('countries')</a></li>
                    <li><a href="{{ route('site.contact') }}">@language('contact')</a></li>
                </ul>
            </div>
            <div class="col-md-6">
                @if(Route::currentRouteName() == 'index' || isset($socialEnabled))
                    <div class="socials">
                        @if($settings->social_facebook_a) <a href="{{ $settings->social_facebook_a }}" target="_blank"><i class="fa fa-facebook-square"></i></a> @endif
                        @if($settings->social_twitter_a) <a href="{{ $settings->social_twitter_a }}" target="_blank"><i class="fa fa-twitter-square"></i></a> @endif
                        @if($settings->social_google_plus_a) <a href="{{ $settings->social_google_plus_a }}" target="_blank"><i class="fa fa-google-plus-square"></i></a> @endif
                        @if($settings->social_delicious_a) <a href="{{ $settings->social_delicious_a }}" target="_blank"><i class="fa fa-delicious"></i></a> @endif
                        @if($settings->social_stumbleupon_a) <a href="{{ $settings->social_stumbleupon_a }}" target="_blank"><i class="fa fa-stumbleupon-circle"></i></a> @endif
                        @if($settings->social_tumblr_a) <a href="{{ $settings->social_tumblr_a }}" target="_blank"><i class="fa fa-tumblr-square"></i></a> @endif
                        @if($settings->social_linkedin_a) <a href="{{ $settings->social_linkedin_a }}" target="_blank"><i class="fa fa-linkedin-square"></i></a> @endif
                        @if($settings->social_pinterest_a) <a href="{{ $settings->social_pinterest_a }}" target="_blank"><i class="fa fa-pinterest-square"></i></a> @endif
                        @if($settings->social_reddit_a) <a href="{{ $settings->social_reddit_a }}" target="_blank"><i class="fa fa-reddit-square"></i></a> @endif
                        @if($settings->social_digg_a) <a href="{{ $settings->social_digg_a }}" target="_blank"><i class="fa fa-digg"></i></a> @endif
                    </div>
                @else
                    <div class="search index-top-search">
                        <form action="{{ URL::route('ajax.search') }}" id="general-search-form" class="searchform">
                            <input type="text" name="url" id="url" class="form-control searchinput"  placeholder="@language('enter_website_address')">
                            <button type="submit" id="search-button" class="btn btn-primary searchbutton">@language('search_button')</button>
                        </form>
                    </div>
                @endif
                <ul class="select-language">
                    <li class="dropdown">
                        <a href="#" class="language" data-toggle="dropdown" class="dropdown-toggle"><img src="{{ asset('img/languages/' . $currentLanguage['short'] . '.png') }}" alt="icon" width="16" height="16"> <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            @if($languages)
                                @foreach($languages as $lang)
                                    <li><a href="{{ route('change-language', [$lang['short']]) }}"><img src="{{ asset('img/languages/' . $lang['short'] . '.png') }}" alt="icon" width="16" height="16"> {{ $lang['name'] }}</a></li>
                                @endforeach
                            @endif
                        </ul>
                    </li>
                </ul>
            </div>

        </div>
    </div>
</div>
<!-- END HEADER -->