
<?php $__env->startSection('meta-content'); ?>
 <?php
    $settings = \App\Models\GeneralSetting::find(1);
    ?>
<title><?php if($settings): ?><?php echo e($settings->site_title); ?><?php endif; ?></title>
<meta name="description" content="<?php if($settings): ?><?php echo e($settings->meta_description); ?><?php endif; ?>">
<meta name="title" content="<?php if($settings): ?><?php echo e($settings->meta_title); ?><?php endif; ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <!-- breadcrumb-area -->
    
    <div class="page-title">
        <div class="container">
          <div class="row">
            <div class="col-md-12">
              <ul class="breadcrumb">
                <li><a href="<?php echo e(route('index')); ?>">Home</a></li>
                <li><a href=""><?php echo e($category->name); ?></a></li>
                <li><?php echo e($subcategory->name); ?></li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    <!-- breadcrumb-area-end -->
    <!-- banner-post-area -->
    <section class="utf_block_wrapper">
        <div class="container">
          <div class="row">
            <div class="col-lg-8 col-md-12">
              <div class="block category-listing category-style2">
                <h3 class="utf_block_title"><span><?php echo e($subcategory->name); ?></span></h3>
                <?php $__currentLoopData = $blogsbysubcategory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="utf_post_block_style post-list clearfix">
                  <div class="row">
                    <div class="col-lg-5 col-md-6">
                      <div class="utf_post_thumb thumb-float-style"> <a href="<?php echo e(route('blog.details', $row->slug)); ?>"> <img class="img-fluid" src="<?php echo e(asset('admin-assets/images/blogs')); ?>/<?php echo e($row->feature_image); ?>" alt=""> </a>  <a class="utf_post_cat" href="#"><?php echo e($row->sub_category->name); ?></a> </div>
                    </div>                
                    <div class="col-lg-7 col-md-6">
                      <div class="utf_post_content">
                        <h2 class="utf_post_title title-large"> <a href="<?php echo e(route('blog.details', $row->slug)); ?>"><?php echo e($row->title); ?></a> </h2>
                        <div class="utf_post_meta"> <span class="utf_post_author"><i class="fa fa-user"></i> <a href="#">Admin</a></span> <span class="utf_post_date"><i class="fa fa-clock-o"></i> <?php echo e($row->created_at->format('d M, Y')); ?></span> <span class="post-comment pull-right"><i class="fa fa-comments-o"></i> <a href="#" class="comments-link"><span><?php echo e($row->comments_count); ?></span></a></span> </div>
                        <p><?php echo \Illuminate\Support\Str::limit($row->description, 100); ?></p>
                      </div>
                    </div>
                  </div>
                </div>      
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>   
              </div>
            </div>
            
            <div class="col-lg-4 col-md-12">
              <div class="sidebar utf_sidebar_right">
                
                
                <div class="widget color-default">
                  <h3 class="utf_block_title"><span>Categories</span></h3>
                  <div class="utf_list_post_block">
                    <ul class="utf_list_post">
                        <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <li class="clearfix">
                        <div class="utf_post_block_style post-float clearfix">
                          <div class="utf_post_thumb"> <a href="#"> <img class="img-fluid" src="<?php echo e(asset('admin-assets/images/categories')); ?>/<?php echo e($category->feature_image); ?>" alt=""> </a> </div>                      
                          <div class="utf_post_content">
                            <h2 class="utf_post_title title-small"> <a href="<?php echo e(route('blogs.category', $category->slug)); ?>"><?php echo e($category->name); ?></a> </h2>
                          </div>
                        </div>
                      </li>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                  </div>
                </div>
    
                <div class="widget text-center"> <img class="banner img-fluid" src="images/banner-ads/ad-sidebar.png" alt=""> </div>
                <div class="widget m-bottom-0">
                  <h3 class="utf_block_title"><span>Newsletter</span></h3>
                  <div class="utf_newsletter_block">
                    <div class="utf_newsletter_introtext">
                      <h4>Subscribe Newsletter!</h4>
                      <p>Lorem ipsum dolor sit consectetur adipiscing elit Maecenas in pulvinar neque Nulla finibus lobortis pulvinar.</p>
                    </div>
                    <div class="utf_newsletter_form">
                      <form action="#" method="post">
                        <div class="form-group">
                          <input type="email" name="email" id="utf_newsletter_form-email" class="form-control form-control-lg" placeholder="E-Mail Address" autocomplete="off">
                          <button class="btn btn-primary">Subscribe</button>
                        </div>
                      </form>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('user.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/mdwdigizhb/blogzcenter.com/resources/views/user/pages/blogs-by-subcategory.blade.php ENDPATH**/ ?>