<!DOCTYPE html>
<html <?php echo Theme::htmlAttributes(); ?>>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5, user-scalable=1" name="viewport"/>

    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

    <style>
        :root {
            --primary-color: <?php echo e(theme_option('primary_color', '#1d5f6f')); ?>;
            --primary-color-rgb: <?php echo e(BaseHelper::hexToRgba(theme_option('primary_color', '#1d5f6f'), 0.8)); ?>;
            --primary-color-hover: <?php echo e(theme_option('primary_color_hover', '#063a5d')); ?>;
        }
    </style>

    <?php echo Theme::header(); ?>

</head>
<body <?php echo Theme::bodyAttributes(); ?>>
<?php echo apply_filters(THEME_FRONT_BODY, null); ?>

<div id="alert-container"></div>
<div class="bravo_topbar d-none d-sm-block">
    <div class="container-fluid w90">
        <div class="row">
            <div class="col-12">
                <div class="content">
                    <div class="topbar-left">
                        <?php
                            $hasSocialLinks = false;
                            $announcements = apply_filters('announcement_display_html', null);
                            $canRenderAnnouncements = is_plugin_active('announcement') && $announcements && \ArchiElite\Announcement\Models\Announcement::query()->exists();
                        ?>

                        <?php if($canRenderAnnouncements): ?>
                            <?php echo $announcements; ?>

                        <?php else: ?>
                            <?php if($socialLinks = json_decode(theme_option('social_links'), true)): ?>
                                <div class="top-socials">
                                    <?php $__currentLoopData = $socialLinks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $socialLink): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php if(count($socialLink) == 3 && isset($socialLink[1]['value']) && isset($socialLink[2]['value'])): ?>
                                            <?php $hasSocialLinks = true; ?>
                                            <a href="<?php echo e($socialLink[2]['value']); ?>"
                                               title="<?php echo e($socialLink[0]['value']); ?>" target="_blank">
                                                <i class="<?php echo e($socialLink[1]['value']); ?>"></i>
                                            </a>
                                        <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                                <?php if($hasSocialLinks && theme_option('email')): ?>
                                    <span class="line"></span>
                                <?php endif; ?>
                            <?php endif; ?>
                            <?php if($email = theme_option('email')): ?>
                                <a href="mailto:<?php echo e($email); ?>" dir="ltr"><?php echo e($email); ?></a>
                            <?php endif; ?>
                        <?php endif; ?>
                    </div>
                    <div class="topbar-right">
                        <?php if(is_plugin_active('real-estate')): ?>
                            <?php if(RealEstateHelper::isEnabledWishlist()): ?>
                                <ul class="topbar-items">
                                    <li><a href="<?php echo e(route('public.wishlist')); ?>"><i class="fas fa-heart"></i>&nbsp;<?php echo e(__('Wishlist')); ?>(<span class="wishlist-count">0</span>)</a></li>
                                </ul>
                            <?php endif; ?>

                            <?php $currencies = get_all_currencies(); ?>
                            <?php if(count($currencies) > 1): ?>
                                <div class="language currency-switcher">
                                    <div class="language-switcher-wrapper">
                                        <div class="dropdown d-inline-block">
                                            <button class="btn btn-secondary dropdown-toggle btn-select-language" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                                                <?php echo e(get_application_currency()->title); ?>

                                            </button>
                                            <ul class="dropdown-menu language_bar_chooser">
                                                <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <li>
                                                        <a href="<?php echo e(route('public.change-currency', $currency->title)); ?>" <?php if(get_application_currency_id() == $currency->id): ?> class="active" <?php endif; ?>><span><?php echo e($currency->title); ?></span></a>
                                                    </li>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            <?php endif; ?>
                        <?php endif; ?>
                        <?php echo Theme::partial('language-switcher'); ?>

                        <?php if(is_plugin_active('real-estate') && RealEstateHelper::isLoginEnabled()): ?>
                            <ul class="topbar-items">
                                <?php if(auth('account')->check()): ?>
                                    <li class="login-item"><a href="<?php echo e(route('public.account.dashboard')); ?>" rel="nofollow"><i class="fas fa-user"></i>&nbsp;<span><?php echo e(auth('account')->user()->name); ?></span></a></li>
                                    <li class="login-item"><a href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();" rel="nofollow"><i class="fas fa-sign-out-alt"></i>&nbsp;<?php echo e(__('Logout')); ?></a></li>
                                <?php else: ?>
                                    <li class="login-item">
                                        <a href="<?php echo e(route('public.account.login')); ?>"><i class="fas fa-sign-in-alt"></i>&nbsp;<?php echo e(__('Login')); ?></a>
                                    </li>
                                <?php endif; ?>
                            </ul>
                            <?php if(auth('account')->check()): ?>
                                <form id="logout-form" action="<?php echo e(route('public.account.logout')); ?>" method="POST" style="display: none;">
                                    <?php echo csrf_field(); ?>
                                </form>
                            <?php endif; ?>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<header class="topmenu bg-light" <?php if(theme_option('enable_sticky_header', 'yes') == 'yes'): ?> id="header-waypoint" <?php endif; ?>>
    <div class="main-header">
        <div class="container-fluid w90">
            <div class="row">
                <div class="col-12">
                    <nav class="navbar navbar-expand-lg navbar-light">
                        <?php if($logo = theme_option('logo')): ?>
                            <a class="navbar-brand" href="<?php echo e(route('public.index')); ?>">
                                <img src="<?php echo e(RvMedia::getImageUrl($logo)); ?>"
                                     class="logo" height="40" alt="<?php echo e(theme_option('site_title')); ?>">
                            </a>
                        <?php endif; ?>
                        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
                                aria-expanded="false" aria-label="Toggle navigation">
                            <span class="fas fa-bars"></span>
                        </button>

                        <div class="collapse navbar-collapse justify-content-end animation" id="navbarSupportedContent">
                            <div class="main-menu-darken"></div>
                            <div class="main-menu-content">
                                <div class="d-lg-none bg-primary p-2">
                                    <span class="text-white"><?php echo e(__('Menu')); ?></span>
                                    <span class="float-right toggle-main-menu-offcanvas text-white">
                                        <i class="far fa-times-circle"></i>
                                    </span>
                                </div>
                                <div class="main-menu-nav d-lg-flex">
                                    <?php echo Menu::renderMenuLocation('main-menu', [
                                            'options' => ['class' => 'navbar-nav justify-content-end menu menu--mobile'],
                                            'view'    => 'main-menu',
                                        ]); ?>

                                    <?php if(is_plugin_active('real-estate') && RealEstateHelper::isLoginEnabled()): ?>
                                        <a class="btn btn-primary add-property" href="<?php echo e(route('public.account.properties.index')); ?>">
                                            <i class="fas fa-plus-circle"></i> <?php echo e(__('Add Property')); ?>

                                        </a>
                                    <?php endif; ?>

                                    <div class="d-sm-none">
                                        <div>
                                            <?php if(is_plugin_active('real-estate')): ?>
                                                <?php if(RealEstateHelper::isEnabledWishlist()): ?>
                                                    <ul class="topbar-items d-block">
                                                        <li class="login-item">
                                                            <a href="<?php echo e(route('public.wishlist')); ?>"><i class="fas fa-heart"></i> <?php echo e(__('Wishlist')); ?>(<span class="wishlist-count">0</span>)</a>
                                                        </li>
                                                    </ul>
                                                <?php endif; ?>

                                                <?php if(count($currencies) > 1): ?>
                                                    <div class="language">
                                                        <div class="language-switcher-wrapper">
                                                            <div class="d-inline-block language-label">
                                                                <?php echo e(__('Currencies')); ?>:
                                                            </div>
                                                            <div class="dropdown d-inline-block">
                                                                <button class="btn btn-secondary dropdown-toggle btn-select-language" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                                                                    <?php echo e(get_application_currency()->title); ?>

                                                                </button>
                                                                <ul class="dropdown-menu language_bar_chooser">
                                                                    <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                        <li>
                                                                            <a href="<?php echo e(route('public.change-currency', $currency->title)); ?>" <?php if(get_application_currency_id() == $currency->id): ?> class="active" <?php endif; ?>><span><?php echo e($currency->title); ?></span></a>
                                                                        </li>
                                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </div>
                                                <?php endif; ?>
                                            <?php endif; ?>
                                            <?php echo Theme::partial('language-switcher'); ?>

                                            <?php if(is_plugin_active('real-estate') && RealEstateHelper::isLoginEnabled()): ?>
                                                <ul class="topbar-items d-block">
                                                    <?php if(auth('account')->check()): ?>
                                                        <li class="login-item"><a href="<?php echo e(route('public.account.dashboard')); ?>" rel="nofollow"><i class="fas fa-user"></i> <span><?php echo e(auth('account')->user()->name); ?></span></a></li>
                                                        <li class="login-item"><a href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();" rel="nofollow"><i class="fas fa-sign-out-alt"></i> <?php echo e(__('Logout')); ?></a></li>
                                                    <?php else: ?>
                                                        <li class="login-item">
                                                            <a href="<?php echo e(route('public.account.login')); ?>"><i class="fas fa-sign-in-alt"></i>  <?php echo e(__('Login')); ?></a>
                                                        </li>
                                                    <?php endif; ?>
                                                </ul>
                                                <?php if(is_plugin_active('real-estate') && auth('account')->check()): ?>
                                                    <form id="logout-form" action="<?php echo e(route('public.account.logout')); ?>" method="POST" style="display: none;">
                                                        <?php echo csrf_field(); ?>
                                                    </form>
                                                <?php endif; ?>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </div>
</header>
<?php /**PATH /home/gyannewsoftware/public_html/realestate13_FlexHome/platform/themes/flex-home/partials/header.blade.php ENDPATH**/ ?>