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

<main>
            <!--start page-heading-->
            <div class="page-heading">
                <nav aria-label="breadcrumb">
                   <div class="container">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="<?php echo e(url(getCurrentlocale().'/')); ?>"><?php echo e(__('web.home')); ?></a></li>
                        <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('web.blog')); ?> </li>
                      </ol>
                   </div>
                </nav>
            </div>
            <!--start blog-pg-->
            <section class="blog-pg">
                <div class="container">
                    <div class="text-heading text-center">
                        <h1><?php echo e(__('web.ourblog')); ?></h1>
                        <span><?php echo e(__('web.ourblog')); ?></span>
                        <p><?php echo e(__('web.blogdesc')); ?></p>
                    </div>
                    <div class="row">
                       <!-- <div class="col-md-8">
                          <div class="blog-carousel owl-carousel owl-theme">
                              <?php $__currentLoopData = $allblogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="item">
                              <a href="<?php echo e(url(getCurrentLocale().'/blog/'.$row->id)); ?>">
                                <div class="blog-card">
                                  <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                  <div class="text">
                                      <span> <?php echo e(date_format($row->created_at,"Y/m/d")); ?></span>
                                      <h6><?php echo e(blogname($row->id)); ?></h6>
                                      <p>
                                        <?php echo e(blogdescription($row->id)); ?>

                                      </p>
                                  </div>
                              </div>
                              </a>
                            </div>
                           <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                          </div>
                        </div>-->
                        <?php $__currentLoopData = $blogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-md-4">
                          <a href="<?php echo e(url(getCurrentLocale().'/blog/'.$row->id)); ?>">
                            <div class="card">
                              <div class="image-container">
                                <img src="<?php echo e(asset($row->image)); ?>">
                              </div>
                              <div class="card-body">
                                <h6><?php echo e(blogname($row->id)); ?></h6>
                                <div class="details row">
                                  <div class="col-6">
                                    <img src="<?php echo e(asset($row->user->photo)); ?>">
                                    <p><?php echo e($row->user->name); ?></p>
                                  </div>
                                  <div class="col-6">
                                    <span><i class="far fa-clock mr-1"></i> <?php echo e(date_format($row->created_at,"Y/m/d")); ?> </span>
                                  </div>
                                </div>
                                <p>
                                  <?php echo e(substr_replace(blogdescription($row->id),"",100)); ?>

                                </p>
                              </div>
                            </div>
                          </a>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    <div class="pagination-wrapper">
                      <nav aria-label="Page navigation example">
                        <ul class="pagination">
                        <?php echo e($blogs->render()); ?>

                          </li>
                        </ul>
                      </nav>
                    </div>
                </div>
            </section>
        </main>
      

<?php $__env->stopSection(); ?>
<?php echo $__env->make('web.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/alhindi/resources/views/web/pages/blogs.blade.php ENDPATH**/ ?>