
<!doctype html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js <?php if(request()->path()=='listing'): ?> listing-html <?php endif; ?>" lang="">
<!--<![endif]-->

<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title><?php $__env->startSection('title'); ?> <?php echo e(get_option('site_title')); ?> <?php echo $__env->yieldSection(); ?></title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <?php $__env->startSection('social-meta'); ?>
    <meta property="og:title" content="<?php echo e(get_option('site_title')); ?>">
    <meta property="og:description" content="<?php echo e(get_option('meta_description')); ?>">
    <meta property="og:url" content="<?php echo e(route('home')); ?>">
    <meta name="twitter:card" content="summary_large_image">
    <!--  Non-Essential, But Recommended -->
    <meta name="og:site_name" content="<?php echo e(get_option('site_name')); ?>">
    <?php echo $__env->yieldSection(); ?>

    <!-- bootstrap css -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/bootstrap.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/custom.css')); ?>">

    <link rel="stylesheet" href="<?php echo e(asset('assets/css/bootstrap-theme.min.css')); ?>">
    <!-- Font awesome 4.4.0 -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/font-awesome-4.7.0/css/font-awesome.min.css')); ?>">
    <!-- load page specific css -->

    <!-- main select2.css -->
    <link href="<?php echo e(asset('assets/select2-3.5.3/select2.css')); ?>" rel="stylesheet" />
    <link href="<?php echo e(asset('assets/select2-3.5.3/select2-bootstrap.css')); ?>" rel="stylesheet" />
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/toastr/toastr.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/nprogress/nprogress.css')); ?>">

    <!--Font Awesome import-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
        integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
    <!-- Conditional page load script -->
    <?php if(request()->segment(1) === 'dashboard'): ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/admin.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/metisMenu/dist/metisMenu.min.css')); ?>">
    <?php endif; ?>


    <!-- main style.css -->
    <?php $default_style = get_option('default_style'); ?>
    <?php if($default_style == 'default'): ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/style.css')); ?>">
    <?php else: ?>
    <link rel="stylesheet" href="<?php echo e(asset("assets/css/style-{$default_style}.css")); ?>">
    <?php endif; ?>

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

    <?php if(get_option('additional_css')): ?>
    <style type="text/css">
        {
                {
                get_option('additional_css')
            }
        }
    </style>
    <?php endif; ?>

    <script src="<?php echo e(asset('assets/js/vendor/modernizr-2.8.3-respond-1.4.2.min.js')); ?>"></script>
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/custom.listing.css')); ?>">
    
    <!--Favicon Links-->
    <link rel="apple-touch-icon" sizes="57x57" href="<?php echo e(asset('assets/favicon/apple-icon-57x57.png')); ?>">
    <link rel="apple-touch-icon" sizes="60x60" href="<?php echo e(asset('assets/favicon/apple-icon-60x60.png')); ?>">
    <link rel="apple-touch-icon" sizes="72x72" href="<?php echo e(asset('assets/favicon/apple-icon-72x72.png')); ?>">
    <link rel="apple-touch-icon" sizes="76x76" href="<?php echo e(asset('assets/favicon/apple-icon-76x76.png')); ?>">
    <link rel="apple-touch-icon" sizes="114x114" href="<?php echo e(asset('assets/favicon/apple-icon-114x114.png')); ?>">
    <link rel="apple-touch-icon" sizes="120x120" href="<?php echo e(asset('assets/favicon/apple-icon-120x120.png')); ?>">
    <link rel="apple-touch-icon" sizes="144x144" href="<?php echo e(asset('assets/favicon/apple-icon-144x144.png')); ?>">
    <link rel="apple-touch-icon" sizes="152x152" href="<?php echo e(asset('assets/favicon/apple-icon-152x152.png')); ?>">
    <link rel="apple-touch-icon" sizes="180x180" href="<?php echo e(asset('assets/favicon/apple-icon-180x180.png')); ?>">
    <link rel="icon" type="image/png" sizes="192x192"  href="<?php echo e(asset('assets/favicon/android-icon-192x192.png')); ?>">
    <link rel="icon" type="image/png" sizes="32x32" href="<?php echo e(asset('assets/favicon/favicon-32x32.png')); ?>">
    <link rel="icon" type="image/png" sizes="96x96" href="<?php echo e(asset('assets/favicon/favicon-96x96.png')); ?>">
    <link rel="icon" type="image/png" sizes="16x16" href="<?php echo e(asset('assets/favicon/favicon-16x16.png')); ?>">
    <link rel="manifest" href="/manifest.json">
    <meta name="msapplication-TileColor" content="#ffffff">
    <meta name="msapplication-TileImage" content="<?php echo e(asset('assets/favicon/ms-icon-144x144.png')); ?>">
    <meta name="theme-color" content="#ffffff">
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-163336393-1"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'UA-163336393-1');
    </script>
</head>

<body>
    <!-- Load Facebook SDK for JavaScript -->
    <div id="fb-root"></div>
    <script>
    window.fbAsyncInit = function() {
      FB.init({
        xfbml            : true,
        version          : 'v9.0'
      });
    };
    
    (function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = 'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js';
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    
    <!-- Your Chat Plugin code -->
    <div class="fb-customerchat"
      attribution=install_email
      page_id="2324658504422630"
        logged_in_greeting="Welcome to Kupeza! How can we help you?"
        logged_out_greeting="Welcome to Kupeza! How can we help you?">
    </div>
    <!--<div id="page-loader">-->
    <!--    <div id="loading-icon">-->

    <!--    </div>-->

    <!--</div>-->

    <nav class="navbar custom-nav-wide <?php if(request()->path()=='listing'): ?> listingpagenav <?php endif; ?> <?php if(request()->path()=='dashboard'): ?> dashboard-page <?php endif; ?>">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand logo" href="<?php echo e(route('home')); ?>">
                    <?php if(get_option('logo_settings') == 'show_site_name'): ?>
                    <?php echo e(get_option('site_name')); ?>

                    <?php else: ?>
                    <?php if(logo_url()): ?>
                    <img src="<?php echo e(logo_url()); ?>">
                    <?php else: ?>
                    <?php echo e(get_option('site_name')); ?>

                    <?php endif; ?>
                    <?php endif; ?>
                </a>
            </div>
            <div class="collapse navbar-collapse" id="myNavbar">
                <ul class="nav navbar-nav navbar-right topnavbar">
                    

                    <?php if(strcmp( $req, 'sale') == 0 ): ?>
                    <li class="<?php if(request()->path()=='listing'): ?> active <?php endif; ?> "><a
                            href="<?php echo e(route('create_ad')); ?>">List For Free</a></li>
                    <li class=""><a href="<?php echo e(route('listing')); ?>">Listing</a></li>
                    <li class="active"><a href="<?php echo e(route('listing')); ?>?q=sale">Buy</a></li>
                    <li class=" "><a href="<?php echo e(route('listing')); ?>?q=rent">Rent</a></li>

                    <?php elseif(strcmp( $req, 'rent') == 0 ): ?>
                    <li class=""><a href="<?php echo e(route('listing')); ?>">Listing</a></li>
                    <li class=""><a href="<?php echo e(route('listing')); ?>?q=sale">Buy</a></li>
                    <li class="active"><a href="<?php echo e(route('listing')); ?>?q=rent">Rent</a></li>
                    <?php else: ?>

                    <li class="<?php if(request()->path()=='listing'): ?> active <?php endif; ?> "><a
                            href="<?php echo e(route('listing')); ?>">Listing</a></li>
                    <li class=""><a href="<?php echo e(route('listing')); ?>?q=sale">Buy</a></li>
                    <li class=" "><a href="<?php echo e(route('listing')); ?>?q=rent">Rent</a></li>
                    <?php endif; ?>


                    <li class="<?php if(request()->path()=='contact-us'): ?> active <?php endif; ?> "><a
                            href="<?php echo e(route('contact_us_page')); ?>">Contact Us</a></li>
                    <li class="<?php if(request()->path()=='about-us'): ?> active <?php endif; ?> "><a
                            href="<?php echo e(route('about_us_page')); ?>">About Us</a></li>
                    <li class="<?php if(request()->path()=='privacy'): ?> active <?php endif; ?> "><a
                            href="<?php echo e(route('privacy')); ?>">Privacy</a></li>
                    <?php if( ! Auth::check()): ?>
                     <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Login<span
                                class="caret"></span></a>
                        <ul class="dropdown-menu form-nav-drop">
                            <?php echo e(Form::open(['route'=>'login','class'=> 'form-nav', 'role'=> 'form'])); ?>

                            <div class="form-group">
                                <input type="email" class="form-control dd_credentials" name="email"
                                    value="<?php echo e(old('email')); ?>" placeholder="Email Address">
                            </div>
                            <div class="form-group">
                                <input type="password" class="form-control dd_credentials" name="password"
                                    placeholder="Password">
                            </div>
                            <button type="submit"
                                class="btn btn-success form-nav-drop-button"><?php echo app('translator')->getFromJson('app.sign_in'); ?></button>
                            <?php echo e(Form::close()); ?>


                            <span class="text-center">or</span>
                            <a href="<?php echo e(route('facebook_redirect')); ?>" class="btn btn-lg btn-block btn-facebook">
                                <i class="fab fa-facebook-square visible-xs"></i>
                                <span class="hidden-xs"><i class="fab fa-facebook-square"
                                        style="font-size: large; color:white;"> </i>Login with Facebook</span>
                            </a><br>
                            <a href="#" class="forgot_pw" data-toggle="modal" data-target="#forgotPasswordEmail">Forgot your password? Please click here.</a>
                        </ul>

                    </li>
                    <li class="<?php if(request()->path()=='user/create'): ?> active <?php endif; ?> "><a
                            href="<?php echo e(route('user.create')); ?>"><?php echo e(trans('app.register')); ?></a></li>

                    <?php else: ?>
                    <li class="<?php if(request()->path()=='dashboard/u/posts/create'): ?> active <?php endif; ?> "><a
                            href="<?php echo e(route('create_ad')); ?>"> <i class="fa fa-tag"></i> <?php echo app('translator')->getFromJson('app.post_an_ad'); ?></a></li>

                    <li class="<?php if(request()->path()=='dashboard'): ?> active <?php endif; ?> ">
                        <a href="<?php echo e(route('dashboard')); ?>">
                            <i class="fa fa-user"></i>
                            <?php echo app('translator')->getFromJson('app.hi'); ?>, <?php echo e($logged_user->name); ?>

                        </a>
                    </li>
                    <li>
                        <a href="<?php echo e(route('logout')); ?>">
                            <?php echo app('translator')->getFromJson('app.logout'); ?>
                        </a>
                    </li>
                    <?php endif; ?>

                </ul>
            </div>
        </div>
    </nav>

<div class="modal fade" id="forgotPasswordEmail" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <?php echo Form::open(['route'=>'send_reset_link']); ?>


            <div class="modal-header">
                <!--<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>-->
                <h4 class="modal-title"><?php echo app('translator')->getFromJson('app.enter_email_to_reset_password'); ?></h4>
            </div>
            <div class="modal-body">

                    <div class="form-group">
                        <label for="email" class="control-label"><?php echo app('translator')->getFromJson('app.email'); ?>:</label>
                        <input type="text" class="form-control" id="email" name="email">
                        <div id="email_info"></div>
                    </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo app('translator')->getFromJson('app.close'); ?></button>
                <button type="submit" class="btn btn-primary" id="send_reset_link"><?php echo app('translator')->getFromJson('app.send_reset_link'); ?></button>
            </div>
            </form>

        </div>
    </div>
</div>
