<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir="ltr" lang="<?php echo e(app()->getLocale()); ?>" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="ltr" lang="<?php echo e(app()->getLocale()); ?>" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="ltr" lang="<?php echo e(app()->getLocale()); ?>">
<!--<![endif]-->
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php echo $__env->yieldContent('title', 'MSGroup'); ?></title>
    
    <meta name="description" content="<?php echo $__env->yieldContent('description', 'MSGroup'); ?>" />
    <meta name="keywords" content="<?php echo $__env->yieldContent('keywords', 'MSGroup'); ?>" />
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <?php echo $__env->yieldContent('metatags', ''); ?>
    <!-- Favicon and touch icons -->
    <link rel="shortcut icon" href="<?php echo e(asset('assets/ico/favicon.ico')); ?>">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo e(asset('assets/ico/apple-touch-icon-144-precomposed.png')); ?>">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo e(asset('assets/ico/apple-touch-icon-114-precomposed.png')); ?>">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo e(asset('assets/ico/apple-touch-icon-72-precomposed.png')); ?>">
    <link rel="apple-touch-icon-precomposed" href="<?php echo e(asset('assets/ico/apple-touch-icon-57-precomposed.png')); ?>">

    <link rel="stylesheet" href="<?php echo e(asset('assets/css/bootstrap.min.css')); ?>">
    <link href="https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500,700" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Roboto:400,300,500,700&amp;subset=latin,latin-ext" rel="stylesheet" type="text/css">
    <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/style.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/header.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/nav.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/footer.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/compare.css')); ?>">
    <?php echo $__env->yieldPushContent('css'); ?>
</head>
<body>
<div class="dc" id="wrp">
<div class="wrapper">
<div id="top">
    <div class="container-fluid">
        <div class="row">
            <div id="title" class="col-xs-12 col-md-8">
                <h1><?php echo $__env->yieldContent('h1', 'MS Group'); ?></h1>
            </div>
            <div id="tbm" class="col-xs-12 col-md-4">
                <ul class="list-inline">
                    <li class="dropdown">
                        <a href="#" title="Izbor valute" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                            <i class="fa fa-money"></i> <span><?php echo e(__('frontside.common.currency')); ?> (<?php echo e(session('currency')); ?>)</span> <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-left">
                            <li><a href="/currency-rsd">Dinar (RSD)</a></li>
                            <li><a href="/currency-usd">USD ($)</a></li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="#" title="Language selection" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                            <span><?php echo e(( Config::get('app.locale') == 'sr') ? 'Srpski (sr)' : 'English (en)'); ?></span> <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-left">
                            <li<?php echo e(( Config::get('app.locale') == 'en') ? ' class=active' : ''); ?>><a href="/">English (en)</a></li>
                            <li<?php echo e(( Config::get('app.locale') == 'sr') ? ' class=active' : ''); ?>><a href="/sr">Srpski (sr)</a></li>
                        </ul>
                    </li>
                    <?php if(Auth::guest()): ?>
                        <li><a href="<?php echo e(locRoute('login')); ?>"> <?php echo e(__('frontside.common.login')); ?></a></li>
                        <li><a href="<?php echo e(locRoute('register')); ?>"> <?php echo e(__('frontside.common.registration')); ?></a></li>
                    <?php else: ?>
                    <li class="dropdown">

                        <a href="<?php echo e(locRoute('user.account')); ?>" title="<?php echo e(__('frontside.user.us_account')); ?>" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                            <i class="fa fa-user"></i> &nbsp; <span><?php echo e(Auth::user()->fullName); ?></span> <span class="caret"></span><!-- class="hidden-xs hidden-sm hidden-md"-->
                        </a>
                        <ul class="dropdown-menu dropdown-menu-left">
                            <li><a title="<?php echo e(__('frontside.user.us_account')); ?>" href="<?php echo e(locRoute('user.account')); ?>"><?php echo e(__('frontside.user.us_account')); ?></a></li>
                            <li>
                                <a href="<?php echo e(locRoute('logout')); ?>" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
                                    <?php echo e(__('frontside.common.logout')); ?>

                                </a>
                                <form id="logout-form" action="<?php echo e(locRoute('user.logout')); ?>" method="GET" style="display: none;">﻿
                                    <?php echo e(csrf_field()); ?>

                                </form>
                            </li>
                        </ul>
                    </li>
                    <?php endif; ?>
                </ul>
            </div>
        </div><!--row-->
    </div><!--container-->
</div><!-- top -->
<header id="header">
    <div class="container-fluid">
        <div id="hinner" class="row">

            <div id="toogle-nav" class="col-xs-2 si">
                <i class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></i>
            </div><!--toogle-mnav-->

            <div id="logo" class="col-xs-8 col-md-3">
                <a href="<?php echo e(locRoute('index')); ?>"><img src="<?php echo e(url($config->logo)); ?>" alt="<?php echo e($config->company_name); ?>"></a>
            </div><!--logo-->

            <div id="srchtg" class="col-xs-2 si">
                <i class="glyphicon glyphicon-search swit"></i>
                <i class="glyphicon glyphicon-remove swit" style="display:none;"></i>
            </div><!--srchtg-->

            <div id="sw" class="col-xs-12 col-md-6">
                <div id="search" class="search">
                    <form method="get" action="<?php echo e(locRoute('search')); ?>">
                        <input placeholder="<?php echo e(__('frontside.header.search_ph')); ?>" value="" id="si" name="q" type="text">
                        <button class="button-search" type="submit"><i aria-hidden="true" class="glyphicon glyphicon-search"></i>
                            <span><?php echo e(__('frontside.header.search_btn')); ?></span></button>
                    </form>
                    <br clear="all">
                </div>
            </div><!--sw-->

            <div class="col-xs-12 col-md-3">
                <div id="icons-holder">
                    <div id="icons-wrap">
                        <div class="box-cart">
                            <?php
                                $numOfCompareProducts = (Session::has('compareproducts') && is_array(session('compareproducts'))) ? count(session('compareproducts')) : 0;
                                $nic = \App\Cart::getNumOfItemsInCart();
                                $numofitemsincart     = (is_numeric($nic) && $nic > 0) ? $nic : 0;
                            ?>
                            <a href="<?php echo e(locRoute('compare')); ?>" id="link-compare"   title="<?php echo e(__('frontside.header.compare')); ?>"> <i class="fa fa-signal"></i>         <span class="count"><?php echo e($numOfCompareProducts); ?></span></a>
                            
                            <a href="<?php echo e(locRoute('cart')); ?>" id="cart-total" title="<?php echo e(__('frontside.header.cart')); ?>"> <i class="fa fa-shopping-basket"> </i><span class="count"><?php echo e($numofitemsincart); ?></span></a>
                        </div>
                    </div>
                </div>
                <div id="hphones"><i class="fa fa-phone-square"></i>&nbsp; 011/123-12-34</div>
            </div><!-- /#icons-holder -->
        </div> <!--row-->
    </div> <!--container-->
    <?php echo $__env->make('frontend.components.mainnav', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
</header>

<?php echo $__env->yieldContent('content'); ?>

<?php echo $__env->make('frontend.components.footer', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php
$cpath = Request::path();
$nocomparation = ['compare','contact','cart','checkout'];
$ifComparation = (!in_array($cpath,$nocomparation)) ? 1 : 0;
?>
<?php echo $__env->renderWhen($ifComparation, 'frontend.components.compare_on_page', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path'))); ?>
</div><!-- end wrapper -->
<script src="<?php echo e(asset('assets/js/jquery-1.11.1.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/bootstrap/js/bootstrap.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/jquery.touchwipe.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/jquery.hoverIntent.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/jquery-scrolltofixed-min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/nav.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/dop.js')); ?>"></script>
<?php echo $__env->yieldPushContent('scripts'); ?>
</div>
</body>
</html>