
<?php $__env->startSection('title'); ?>
    <title><?php echo e($blog->title); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta'); ?>
    <meta name="description" content="<?php echo e($blog->seo_description); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('user-content'); ?>


  <!--===BREADCRUMB PART START====-->
  <section class="wsus__breadcrumb" style="background: url(<?php echo e(url($banner_image->image)); ?>);">
    <div class="wsus_bread_overlay">
        <div class="container">
            <div class="row">
                <div class="col-12 text-center">
                    <h4><?php echo e($menus->where('id',7)->first()->navbar); ?></h4>
                    <nav style="--bs-breadcrumb-divider: '-';" aria-label="breadcrumb">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="<?php echo e(route('home')); ?>"><?php echo e($menus->where('id',1)->first()->navbar); ?></a></li>
                            <li class="breadcrumb-item active" aria-current="page"><?php echo e($menus->where('id',7)->first()->navbar); ?></li>
                        </ol>
                    </nav>
                </div>
            </div>
        </div>
    </div>
  </section>
  <!--===BREADCRUMB PART END====-->


  <!--=====BLOG DETAILS START=====-->
  <section class="wsus__blog_details mt_45 mb_45 xs_mb_20">
    <div class="container">
      <div class="row">
        <div class="col-xl-8 col-lg-7">
          <div class="wsus__blog_det_area">
            <div class="wsus__blog_det_img">
              <img src="<?php echo e(asset($blog->image)); ?>" alt="blod images" class="img-fluid w-100">
              <p>
                <span><i class="fal fa-user-clock"></i> <?php echo e($blog->admin->name); ?></span>
                <span><i class="fal fa-comment-alt-dots"></i> <?php echo e($blog->comments->where('status',1)->count()); ?> <?php echo e($websiteLang->where('lang_key','comments')->first()->custom_text); ?></span>
                <span><i class="far fa-eye"></i><?php echo e($blog->view); ?> <?php echo e($websiteLang->where('lang_key','views')->first()->custom_text); ?></span>
                </p>
            </div>
            <h3><?php echo e($blog->title); ?></h3>
            <p class="details mb-3"><?php echo e($blog->short_description); ?></p>

            <?php echo clean($blog->description); ?>


            <?php if($commentSetting->comment_type==1): ?>
            <div class="wsus__blog_comment">
              <h3><?php echo e($blog->comments->where('status',1)->count()); ?> <?php echo e($websiteLang->where('lang_key','comments')->first()->custom_text); ?></h3>

              <?php $__currentLoopData = $blogComments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <div class="wsus__single_comment">
                <div class="wsus__comm_img">
                  <img src="<?php echo e(asset($default_profile_image->image)); ?>" alt="comment img" class="img-fluid img-thumbnail">
                </div>
                <div class="wsus__comm_text">
                  <h4><?php echo e($item->name); ?></h4>
                  <span><?php echo e($item->created_at->format('d M Y')); ?></span>
                  <p><?php echo e($item->comment); ?></p>
                </div>
              </div>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              <div class="col-12">
                <?php echo e($blogComments->links('user.paginator')); ?>

              </div>
              <h3 class="border-0 pt-0"><?php echo e($websiteLang->where('lang_key','submit_comment')->first()->custom_text); ?></h3>
              <form action="<?php echo e(route('blog.comment',$blog->id)); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <div class="row">
                  <div class="col-xl-6">
                    <input type="text" name="name" placeholder="<?php echo e($websiteLang->where('lang_key','name')->first()->custom_text); ?>">
                  </div>
                  <div class="col-xl-6">
                    <input type="email" name="email" placeholder="<?php echo e($websiteLang->where('lang_key','email')->first()->custom_text); ?>">
                  </div>
                  <div class="col-xl-12">
                    <textarea cols="3" rows="4" placeholder="<?php echo e($websiteLang->where('lang_key','comment')->first()->custom_text); ?>" name="comment"></textarea>
                    <?php if($commentSetting->allow_captcha==1): ?>
                    <p class="g-recaptcha mb-3" data-sitekey="<?php echo e($commentSetting->captcha_key); ?>"></p>
                    <?php endif; ?>

                    <button class="common_btn" type="submit"><?php echo e($websiteLang->where('lang_key','submit')->first()->custom_text); ?></button>

                  </div>
                </div>
              </form>
            </div>
            <?php else: ?>
                <div class="wsus__blog_comment">
                    <div class="fb-comments" data-href="<?php echo e(Request::url()); ?>" data-width="" data-numposts="10"></div>
                </div>
            <?php endif; ?>
          </div>
        </div>
        <div class="col-xl-4 col-lg-5">
          <div class="wsus__property_sidebar mb-0" id="sticky_sidebar">
            <div class="wsus__blog_search">
              <h5><?php echo e($websiteLang->where('lang_key','search_blog')->first()->custom_text); ?></h5>
              <form action="<?php echo e(route('blog.search')); ?>" method="GET">
                <input type="text" placeholder="<?php echo e($websiteLang->where('lang_key','search_type')->first()->custom_text); ?>" name="search" required>
                <button class="common_btn" type="submit"><i class="fal fa-search"></i></button>
              </form>
            </div>
            <div class="wsus__search_categoy">
              <h5><?php echo e($websiteLang->where('lang_key','categories')->first()->custom_text); ?></h5>
              <ul>
                <?php $__currentLoopData = $blogCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><a href="<?php echo e(route('blog.category',$item->slug)); ?>"><?php echo e($item->name); ?> <span><?php echo e($item->blogs->count()); ?></span></a></li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

              </ul>
            </div>
            <div class="wsus__blog_post">
              <h5><?php echo e($websiteLang->where('lang_key','trend_post')->first()->custom_text); ?></h5>
              <div class="row">
                <?php
                    $colorId=1;
                ?>
                <?php $__currentLoopData = $popularBlogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $popular_item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                    if($index %4 ==0){
                        $colorId=1;
                    }

                    $color="";
                    if($colorId==1){
                        $color="";
                    }else if($colorId==2){
                        $color="oreangr";
                    }else if($colorId==3){
                        $color="gren";
                    }else if($colorId==4){
                        $color="blur";
                    }
                ?>

                <div class="col-xl-12 col-md-6 col-lg-12">
                  <div class="wsus__single_blog">
                    <div class="wsus__blog_img">
                      <img src="<?php echo e(asset($popular_item->image)); ?>" alt="blog items" class="img-fluid w-100">
                      <span class="category <?php echo e($color); ?>"><?php echo e($popular_item->category->name); ?></span>
                    </div>
                    <div class="wsus__blog_text">
                      <p class="blog_date">
                        <span><?php echo e($popular_item->created_at->format('d')); ?></span>
                        <span><?php echo e($popular_item->created_at->format('m')); ?></span>
                        <span><?php echo e($popular_item->created_at->format('Y')); ?></span>
                      </p>
                      <span class="comment"><i class="fal fa-comment-dots"></i> <?php echo e($popular_item->comments->count()); ?></span>
                      <div class="wsus__blog_header d-flex flex-wrap align-items-center justify-content-between">
                        <div class="blog_header_images d-flex flex-wrap align-items-center w-100">
                          <img src="<?php echo e($popular_item->admin->image ? url($popular_item->admin->image) : url($default_profile_image->image)); ?>" alt="bloger" class="img-fluid img-thumbnail">
                          <span><?php echo e($popular_item->admin->name); ?></span>
                        </div>
                      </div>
                      <a href="<?php echo e(route('blog.details',$popular_item->slug)); ?>" class="blog_title"><?php echo e($popular_item->title); ?></a>
                      <p><?php echo e($popular_item->short_description); ?></p>
                    </div>
                  </div>
                </div>

                <?php
                    $colorId ++;
                ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
  <!--=====BLOG DETAILS  END=====-->


<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v11.0&appId=<?php echo e($commentSetting->facebook_comment_script); ?>&autoLogAppEvents=1" nonce="MoLwqHe5"></script>




<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.user.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/cloudelite/imobi.eliteteclda.com/resources/views/user/blog/show.blade.php ENDPATH**/ ?>