Viewing file: f2c999abbb673f79507cb11e822dbd71f6dd28cd.php (2.75 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$blogs = $homeService->getBlogs($component->blog_type, $component->blog_limit, null, $component->blogs);
?>
<?php $__currentLoopData = $blogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $blog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="w-4/5 md:w-1/3 mb-2 md:mb-0 relative">
<div class="w-260p rounded-md md:w-full overflow-hidden">
<div class="rounded-md">
<div class="grows inline-block overflow-hidden w-full md:h-48 h-36">
<a href="<?php echo e(route('blog.details', ['slug' => $blog->slug])); ?>">
<img class="w-full h-full rounded-md block object-cover neg-transition-scale" src="<?php echo e($blog->fileUrl()); ?>"
alt="<?php echo e($blog->title); ?>">
</a>
</div>
</div>
</div>
<div class="absolute left-2.5 top-2.5 h-10 w-10 bg-opacity rounded md:left-4 md:top-4 md:h-11 md:w-11">
<p class="text-center text-15 md:text-xl font-bold dm-bold leading-3 mt-2 md:mt-0">
<?php echo e(date('d', strtotime($blog->created_at))); ?></p>
<p class="text-center text-xs md:text-sm font-normal mt-0.5 md:-mt-1.5 dm-regular">
<?php echo e(date('M', strtotime($blog->created_at))); ?></p>
</div>
<p class="text-xss md:text-13 font-medium break-all title-font text-gray-10 mt-3 dm-sans">
<?php echo e(optional($blog->user)->name); ?></p>
<p class="text-base md:text-xl md:leading-relaxed break-all font-medium text-gray-12 dm-sans">
<?php echo e(trimWords($blog->title, 65)); ?></p>
<a href="<?php echo e(route('blog.details', $blog->slug)); ?>"
class="text-gray-10 font-medium text-sm md:text-base inline-flex items-center mt-1 dm-sans"><?php echo e(__('Read Now')); ?>
<svg class="w-3 md:w-4 h-4 mt-0.5 <?php echo e(languageDirection() == 'ltr' ? 'ml-2' : 'mr-2 neg-transition-scale'); ?>" viewBox="0 0 15 10" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M9.70696 0L8.29274 1.41421L10.5856 3.70711H0.999849C0.447564 3.70711 -0.000150681 4.15482 -0.000150681 4.70711C-0.000150681 5.25939 0.447564 5.70711 0.999849 5.70711H10.5856L8.29274 8L9.70696 9.41421L14.4141 4.70711L9.70696 0Z"
fill="currentColor" />
</svg>
</a>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php /**PATH /home/picotech/domains/ecom1.picotech.app/public_html/Modules/CMS/Resources/views/templates/blocks/sub/blogs-template-v1-data.blade.php ENDPATH**/ ?>
|