<!DOCTYPE html>
<html lang="fa">
<head>
    <!-- Main -->
    <meta charset="UTF-8">
    <title><?php echo e("فروشگاه اینترنتی"); ?> - <?php echo $__env->yieldContent('title'); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <?php if(App::isLocal()): ?>
        <link rel="stylesheet" href="<?php echo e(asset('assets/css/bootstrap.css')); ?>">
        <link rel="stylesheet" href="<?php echo e(asset('assets/css/bootstrap-theme.css')); ?>">
        <link rel="stylesheet" href="<?php echo e(asset('assets/css/bootstrap-rtl.min.css')); ?>">
    <?php else: ?>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
    <?php endif; ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/global.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/master.css')); ?>">
    <link rel="icon" href="<?php echo e(asset('assets/favicon.ico')); ?>">
    <?php echo $__env->yieldContent('head'); ?>
    <!-- SEO -->
    <meta name="description" content="<?php echo $__env->yieldContent('description'); ?>">
    <meta name="keywords" content="<?php echo $__env->yieldContent('keywords'); ?>">
    <link rel="author" href="https://plus.google.com/106945145782595448252">
    <link rel="publisher" href="https://google.com/+GooglePlusPage">
    <!-- GooglePlus -->
    <meta itemprop="name" content="<?php echo e('تفروشگاه اینترنتی - '); ?> - <?php echo $__env->yieldContent('title'); ?>">
    <meta itemprop="description" content="<?php echo $__env->yieldContent('description'); ?>">
    <meta itemprop="image" content="<?php echo e(asset('assets/img/logo.png')); ?>">
    <!-- Facebook -->
    <meta property="og:url" content="<?php echo e(Request::url()); ?>">
    <meta property="og:image" content="<?php echo e(asset('assets/img/logo.png')); ?>">
    <meta property="og:description" content="<?php echo $__env->yieldContent('description'); ?>">
    <meta property="og:title" content="<?php echo e('فروشگاه اینترنتی'); ?> - <?php echo $__env->yieldContent('title'); ?>">
    <meta property="og:site_name" content=" - فروشگاه اینترنتی">
    <meta property="og:see_also" content="<?php echo e(Request::url()); ?>">
    <!-- Twitter -->
    <meta name="twitter:card" content="<?php echo $__env->yieldContent('description'); ?>">
    <meta name="twitter:url" content="<?php echo e(Request::url()); ?>">
    <meta name="twitter:title" content="<?php echo e('فروشگاه اینترنتی'); ?> - <?php echo $__env->yieldContent('title'); ?>">
    <meta name="twitter:description" content="<?php echo $__env->yieldContent('description'); ?>">
    <meta name="twitter:image" content="<?php echo e(asset('assets/img/logo.png')); ?>">
    <!-- JS Bridges -->
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <meta name="url" content="<?php echo e(Request::url()); ?>">
    <!--End-->
</head>
<body>

<!-- Nav -->
<nav class="navigator navbar-fixed-top" role="navigation">
    <div  class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a  class="navbar-brand" href="#">
                <img src="<?php echo e(asset('assets/img/logo24.png')); ?>">
                <a class="logo" style="margin-left: 100px" href="<?php echo e(url('/')); ?>">فروشگاه اینترنتی</a>
            </a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li ><a class="header" href="<?php echo e(url('/')); ?>">خانه <span class="sr-only">(current)</span></a></li>
                <li><a class="header" href="<?php echo e(url('/contact')); ?>">ارتباط با ما</a></li>
                <li><a class="header">...</a></li>
            </ul>
            <form method="post" action="<?php echo e(url('/search')); ?>" class="navbar-form navbar-left">
                <div class="form-group">
                    <input name="search-name" type="text" class="form-control" placeholder="جستجوی محصول">
                </div>
                <input hidden name="_token" value="<?php echo e(csrf_token()); ?>">
                <input type="submit" class="btn btn-info" value="جستجو">
                <a href="<?php echo e(url('/basket')); ?>" class="btn btn-warning num"><img class="img-count" src="<?php echo e(asset('assets/img/shop-basket.png')); ?>"><span class="count"><?php echo e(count(session('ids'))); ?></span></a>
                <a>خوش آمدید،</a><a class="header"><?php echo e(Auth::user()->name); ?></a>
                <?php if(Auth::user()->Privilege()->find(1)!=null ||Auth::user()->Privilege()->find(2)!=null||Auth::user()->Privilege()->find(3)!=null||Auth::user()->Privilege()->find(4)!=null): ?>
                <a href="<?php echo e(url('/panel')); ?>" class="btn btn-info">پنل مدیریت</a>
                <?php endif; ?>
            </form>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<section class="container">
    <main class="col-md-9 container-fluid main">
        <?php echo $__env->yieldContent('main'); ?>
    </main>
    <main class="col-md-3 container-fluid main">
        <?php echo $__env->yieldContent('sidebar'); ?>
    </main>
</section>

<footer class="footer navbar-fixed-bottom">
    <div class="container">
        <div class="col-md-6 center-xs center-sm">
            <span>همه ارزش های این تارنما ازآن Web-Shop   می باشد.</span>
        </div>
        <hr class="hidden-md hidden-lg">
        <div class="col-md-6 text-left center-xs center-sm">
            <a href="/" class="hidden-xs">خانه</a>
            <span class="hidden-xs">|</span>
            <a href="/guide">راهنما</a>
            <span>|</span>
            <a href="/publicity">تبلیغات</a>
            <span>|</span>
            <a href="/rules">قوانین</a>
            <span>|</span>
            <a href="/about">درباره</a>
            <span>|</span>
            <a href="<?php echo e(url('/relevance')); ?>">ارتباط</a>
        </div>
    </div>
</footer>
<!-- The End -->
</body>
<!-- Scripts -->
<?php if(App::isLocal()): ?>
    <script src="<?php echo e(asset('assets/js/jquery.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/js/bootstrap.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/js/angular.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/js/angular-locale_fa-ir.js')); ?>"></script>
<?php else: ?>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.3/i18n/angular-locale_fa-ir.js"></script>
<?php endif; ?>
<script src="<?php echo e(asset('assets/js/auth/auth.js')); ?>"></script>
<?php echo $__env->yieldContent('scripts'); ?>
</html>