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

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

  <!--===BREADCRUMB PART START====-->
  <section class="wsus__breadcrumb" style="background: url(<?php echo e($banner_image ? 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(__('user.Blog')); ?></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(__('user.Home')); ?></a></li>
                            <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('user.Blog')); ?></li>
                        </ol>
                    </nav>
                </div>
            </div>
        </div>
    </div>
  </section>
  <!--===BREADCRUMB PART END====-->



  <!--=====BLOG START=====-->
  <section class="wsus__blog mt_45 mb_45">
    <div class="container">
      <div class="row">
        <?php if($blogs->count() > 0): ?>
            <?php
                $colorId=1;
            ?>
            <?php $__currentLoopData = $blogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $blog_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-4 col-md-6">
                <div class="wsus__single_blog">
                    <div class="wsus__blog_img">
                    <img src="<?php echo e(asset($blog_item->image)); ?>" alt="blog items" class="img-fluid w-100">
                    <span class="category <?php echo e($color); ?>"><?php echo e($blog_item->category->translated_name); ?></span>
                    </div>
                    <div class="wsus__blog_text">
                    <p class="blog_date">
                        <span><?php echo e($blog_item->created_at->format('d')); ?></span>
                        <span><?php echo e($blog_item->created_at->format('m')); ?></span>
                        <span><?php echo e($blog_item->created_at->format('Y')); ?></span>
                    </p>
                    <span class="comment"><i class="fal fa-comment-dots"></i> <?php echo e($blog_item->totalComment); ?></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($blog_item->admin->image ? url($blog_item->admin->image) : url($default_profile_image)); ?>" alt="bloger" class="img-fluid img-thumbnail">
                        <span><?php echo e($blog_item->admin->name); ?></span>
                        </div>
                    </div>
                    <a href="<?php echo e(route('blog.details',$blog_item->slug)); ?>" class="blog_title"><?php echo e($blog_item->translated_title); ?></a>
                    <p><?php echo e($blog_item->translated_short_description); ?></p>
                    </div>
                </div>
                </div>
                <?php
                    $colorId ++;
                ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <div class="col-12 mt_20">
                <?php echo e($blogs->links('custom_paginator')); ?>

            </div>
        <?php else: ?>
            <div class="col-12 text-center">
                <h3 class="text-danger"><?php echo e(__('user.Blog Not Found')); ?></h3>
            </div>
        <?php endif; ?>
      </div>
    </div>
  </section>
  <!--=====BLOG END=====-->
<?php $__env->stopSection(); ?>

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