/
home
/
sjslayjy
/
public_html
/
theweavenest
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('page_title', 'product_cat'); ?> <?php $__env->startSection('content'); ?> <style> .pot-thumb { width: 100%; /* Ensure the image container takes up the full width of its parent */ height: 300px; /* Set a fixed height for the image container */ overflow: hidden; /* Hide any overflow */ display: flex; align-items: center; justify-content: center; border-radius: 20px; /* Adds a curve to the edges of the image container */ } .pot-thumb img { width: 100%; /* Ensure the image takes up the full width of the container */ height: 100%; /* Ensure the image takes up the full height of the container */ object-fit: cover; /* Ensure the image covers the container without distortion */ border-radius: 20px; /* Adds a curve to the edges of the image */ } .pot { margin-bottom: 20px; /* Add some spacing between posts */ } </style> <section class="page-header"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="content"> <h1 class="page-name">Blog</h1> <ol class="breadcrumb"> <li><a href="index.html">Home</a></li> <li class="active">blog</li> </ol> </div> </div> </div> </div> </section> <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-md-6"> <div class="pot"> <div class="pot-thumb"> <a href="blog-single.html"> <img class="img-responsive" src="<?php echo e(asset('storage/media/category/' . $post->image)); ?>" alt="<?php echo e($post->title); ?>"> </a> </div> <h2 class="post-title"><a href="blog-single.html"><?php echo e($post->title); ?></a></h2> <div class="post-content"> <p><?php echo e($post->description); ?></p> <a href="<?php echo e(route('blog.single', ['id' => $post->id])); ?>" class="btn btn-main" style="border-radius: 25px;">Read Blog Posts</a> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </form> </div> </div> </div> </div> </div> </section> <?php $__env->stopSection(); ?> <?php echo $__env->make('front.layout_alt', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laravel_projecgts\ajay\resources\views/front/blog.blade.php ENDPATH**/ ?>