<?php
    $topbar_contact=App\ContactUs::first();
    $setting=App\Setting::first();
    $customPages=App\CustomPage::all();
    $navigations=App\Navigation::all();
    $websiteLang=App\ManageText::all();
?>


<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densityDpi=device-dpi" />
    <?php echo $__env->yieldContent('title'); ?>
    <?php echo $__env->yieldContent('meta'); ?>


    <link href="https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;900&family=Poppins:wght@400;500;600;900&display=swap" rel="stylesheet">

  <link rel="icon" type="image/png" href="<?php echo e(url($setting->favicon)); ?>">
  <link rel="stylesheet" href="<?php echo e(asset('user/css/all.min.css')); ?>">
  <link rel="stylesheet" href="<?php echo e(asset('user/css/bootstrap.min.css')); ?>">
  <link rel="stylesheet" href="<?php echo e(asset('user/css/spacing.css')); ?>">
  <link rel="stylesheet" href="<?php echo e(asset('user/css/slick.css')); ?>">
  <link rel="stylesheet" href="<?php echo e(asset('user/css/select2.min.css')); ?>">
  <link rel="stylesheet" href="<?php echo e(asset('user/css/add_row_custon.css')); ?>">


  <link rel="stylesheet" href="<?php echo e(asset('user/css/style.css')); ?>">
  <link rel="stylesheet" href="<?php echo e(asset('user/css/responsive.css')); ?>">

  <?php if($setting->text_direction=="RTL"): ?>
    <link rel="stylesheet" href="<?php echo e(asset('user/css/rtl.css')); ?>">
  <?php endif; ?>

  <link rel="stylesheet" href="<?php echo e(asset('user/css/dev.css')); ?>">

  <link rel="stylesheet" href="<?php echo e(asset('toastr/toastr.min.css')); ?>">

  <?php echo $__env->make('user.theme_style', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <script src="https://www.google.com/recaptcha/api.js" async defer></script>
    <script src="<?php echo e(asset('user/js/jquery-3.6.0.min.js')); ?>"></script>
    <script src="<?php echo e(asset('user/js/sweetalert2@11.js')); ?>"></script>

    <!-- Global site tag (gtag.js) - Google Analytics -->
    <?php if($setting->google_analytic==1): ?>
    <script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo e($setting->google_analytic_code); ?>"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', '<?php echo e($setting->google_analytic_code); ?>');
    </script>
    <?php endif; ?>

</head>

<body>

  <!--=====TOPBAR START=====-->
  <section class="wsus__topbar">
    <div class="container">
      <div class="row">
        <div class="col-xl-6 col-12 col-sm-8">
          <ul class="wsus__topbar_left d-flex align-items-center">
            <li><a href="callto:<?php echo e($topbar_contact->topbar_phone); ?>"><i class="fal fa-mobile"></i> <?php echo e($topbar_contact->topbar_phone); ?></a></li>
            <li><a href="maolto:<?php echo e($topbar_contact->topbar_email); ?>"><i class="fas fa-envelope"></i> <?php echo e($topbar_contact->topbar_email); ?></a></li>
          </ul>
        </div>
        <div class="col-xl-6 col-sm-4 d-none d-sm-block">
          <ul class="wsus__topbar_right d-flex justify-content-end align-items-center">
                <?php if($topbar_contact->facebook): ?>
                <li><a href="<?php echo e($topbar_contact->facebook); ?>"><i class="fab fa-facebook-f"></i></a></li>
                <?php endif; ?>
                <?php if($topbar_contact->twitter): ?>
                <li><a href="<?php echo e($topbar_contact->twitter); ?>"><i class="fab fa-twitter"></i></a></li>
                <?php endif; ?>
                <?php if($topbar_contact->linkedin): ?>
                <li><a href="<?php echo e($topbar_contact->linkedin); ?>"><i class="fab fa-linkedin-in"></i></a></li>
                <?php endif; ?>
                <?php if($topbar_contact->instagram): ?>
                <li><a href="<?php echo e($topbar_contact->instagram); ?>"><i class="fab fa-instagram"></i></a></li>
                <?php endif; ?>
                <?php if($topbar_contact->youtube): ?>
                <li><a href="<?php echo e($topbar_contact->youtube); ?>"><i class="fab fa-youtube"></i></a></li>
                <?php endif; ?>
            </ul>
        </div>
      </div>
    </div>
  </section>
  <!--=====TOPBAR END=====-->


  <!--=====MAIN MENU START=====-->
  <nav class="navbar navbar-expand-lg main_menu">
    <div class="container">
      <a class="navbar-brand" href="<?php echo e(route('home')); ?>">
        <img src="<?php echo e(url($setting->logo)); ?>" alt="logo" class="img-fluid w-100">
      </a>
      <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
        aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <i class="fal fa-align-right"></i>
      </button>
      <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav m-auto mb-2 mb-lg-0">

            <?php
                $home_menu=$navigations->where('id',1)->first();
            ?>
            <?php if($home_menu->status==1): ?>
            <li class="nav-item">
                <a class="nav-link <?php echo e(Route::is('home') ? 'active' : ''); ?>" aria-current="page" href="<?php echo e(url('/')); ?>"><?php echo e($home_menu->navbar); ?></a>
            </li>
            <?php endif; ?>

            <?php
                $about_menu=$navigations->where('id',4)->first();
            ?>
            <?php if($about_menu->status==1): ?>
            <li class="nav-item">
                <a class="nav-link <?php echo e(Route::is('about.us') ? 'active' : ''); ?>" href="<?php echo e(route('about.us')); ?>"><?php echo e($about_menu->navbar); ?></a>
            </li>
            <?php endif; ?>

            <?php
                $property_menu=$navigations->where('id',2)->first();
            ?>
            <?php if($property_menu->status==1): ?>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle <?php echo e(Route::is('properties') || Route::is('agents') ? 'active' : ''); ?>" href="javascript:;" id="navbarDropdown" role="button" data-bs-toggle="dropdown"
                    aria-expanded="false">
                    <?php echo e($property_menu->navbar); ?>

                    </a>
                    <ul class="dropdown-menu" aria-labelledby="navbarDropdown">

                        <?php
                            $all_property_menu=$navigations->where('id',3)->first();
                        ?>
                        <?php if($all_property_menu->status==1): ?>
                        <li><a class="dropdown-item" href="<?php echo e(route('properties',['page_type' => 'list_view'])); ?>"><?php echo e($all_property_menu->navbar); ?></a></li>
                        <?php endif; ?>

                        <?php
                            $featured_property_menu=$navigations->where('id',19)->first();
                        ?>

                        <?php if($featured_property_menu->status==1): ?>
                        <li><a class="dropdown-item" href="<?php echo e(route('properties',['page_type' => 'list_view','sorting_id'=>3])); ?>"><?php echo e($featured_property_menu->navbar); ?></a></li>
                        <?php endif; ?>

                        <?php
                            $top_property_menu=$navigations->where('id',20)->first();
                        ?>
                        <?php if($top_property_menu->status==1): ?>
                        <li><a class="dropdown-item" href="<?php echo e(route('properties',['page_type' => 'list_view','sorting_id'=>4])); ?>"><?php echo e($top_property_menu->navbar); ?></a></li>
                        <?php endif; ?>

                        <?php
                            $urgent_property_menu=$navigations->where('id',21)->first();
                        ?>
                        <?php if($urgent_property_menu->status==1): ?>
                        <li><a class="dropdown-item" href="<?php echo e(route('properties',['page_type' => 'list_view','sorting_id'=>6])); ?>"><?php echo e($urgent_property_menu->navbar); ?></a></li>
                        <?php endif; ?>
                        <?php
                            $agent_menu=$navigations->where('id',6)->first();
                        ?>
                        <?php if($agent_menu->status==1): ?>
                        <li><a class="dropdown-item" href="<?php echo e(route('agents')); ?>"><?php echo e($agent_menu->navbar); ?></a></li>
                        <?php endif; ?>

                    </ul>
                </li>
            <?php endif; ?>

            <?php
                $pricing_menu=$navigations->where('id',5)->first();
            ?>
            <?php if($pricing_menu->status==1): ?>
                <li class="nav-item">
                    <a class="nav-link <?php echo e(Route::is('pricing.plan') ? 'active' : ''); ?>" href="<?php echo e(route('pricing.plan')); ?>"><?php echo e($pricing_menu->navbar); ?></a>
                </li>
            <?php endif; ?>

            <?php
                $pages_menu=$navigations->where('id',18)->first();
            ?>
            <?php if($pages_menu->status==1): ?>
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle <?php echo e(Route::is('blog') || Route::is('blog.details') || Route::is('custom.page') || Route::is('faq') ? 'active' : ''); ?>" href="javascript:;" id="navbarDropdown" role="button" data-bs-toggle="dropdown"
                    aria-expanded="false">
                    <?php echo e($pages_menu->navbar); ?>

                </a>
                <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                    <?php
                        $faq_menu=$navigations->where('id',17)->first();
                    ?>
                    <?php if($faq_menu->status==1): ?>
                    <li><a class="dropdown-item <?php echo e(Route::is('faq') ? 'active' : ''); ?>" href="<?php echo e(route('faq')); ?>"><?php echo e($faq_menu->navbar); ?></a></li>
                    <?php endif; ?>

                    <?php
                        $blog_menu=$navigations->where('id',7)->first();
                    ?>
                    <?php if($blog_menu->status==1): ?>
                    <li>
                        <a class="dropdown-item <?php echo e(Route::is('blog') || Route::is('blog.details') ? 'active' : ''); ?>" href="<?php echo e(route('blog')); ?>"><?php echo e($blog_menu->navbar); ?></a>
                    </li>
                    <?php endif; ?>

                    <?php if($customPages->count() !=0): ?>
                        <?php $__currentLoopData = $customPages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $custom_item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li><a class="dropdown-item <?php echo e(Request::url() == route('custom.page',$custom_item->slug) ? 'active' : ''); ?>" href="<?php echo e(route('custom.page',$custom_item->slug)); ?>"><?php echo e($custom_item->page_name); ?></a></li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                </ul>
            </li>
            <?php endif; ?>


            <?php
                $contact_menu=$navigations->where('id',8)->first();
            ?>
            <?php if($contact_menu->status==1): ?>
            <li class="nav-item">
                <a class="nav-link <?php echo e(Route::is('contact-us')? 'active' : ''); ?>" href="<?php echo e(route('contact.us')); ?>"><?php echo e($contact_menu->navbar); ?></a>
            </li>
            <?php endif; ?>

        </ul>

        <?php
            $my_account =$navigations->where('id',22)->first();
        ?>
        <?php if($my_account ->status==1): ?>
            <ul class="login_icon ms-auto">
                <li><a href="<?php echo e(route('user.dashboard')); ?>"><i class="fal fa-user-circle"></i> <?php echo e($my_account->navbar); ?></a>
                </li>
            </ul>
        <?php endif; ?>
      </div>
    </div>
  </nav>
  <!--=====MAIN MENU END=====-->
<?php /**PATH E:\AR-8u191-IT\imobiliario\resources\views/layouts/user/header.blade.php ENDPATH**/ ?>