Viewing file: 7453ca2b9fdd5f8bff6cd68f26a3d554.php (3.7 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(get_settings('app_name')); ?> - <?php echo e(trans('Blogs')); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('main-section'); ?> <div class="content-blog"> <div class="container"> <div class="row"> <div class="col-12"> <div class="all-blog-title"> Blogs </div> </div> </div> <div class="blog-content mt-5 mb-5"> <div class="row"> <?php if(isset($blogs) && $blogs): ?> <?php $__currentLoopData = $blogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $blog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-lg-6 col-md-6 col-12 blog-content-data"> <div class="blog-image"> <?php if(isset($blog->image) && $blog->image): ?> <a href="<?php echo e(route('blog.details',[$blog->slug])); ?>"> <img src="<?php echo e(asset('uploads/'.$blog->image)); ?>" alt="" class="blog-sec-img zoom-effect img-fluid"></a> <?php endif; ?> </div> <div class="blog-information"> <div class="head-info"> <?php echo e($blog->created_at->format('M d')); ?>
</div> <div class="body-info"> <?php $blog_title = strip_tags($blog->title); $max_length = 70; $truncated_title = mb_substr($blog_title, 0, $max_length, 'UTF-8'); if (mb_strlen($blog_title, 'UTF-8') > $max_length) { $truncated_title = mb_substr($truncated_title, 0, mb_strrpos($truncated_title, ' ', 0, 'UTF-8')); $truncated_title .= '...'; } ?> <h2> <a href="<?php echo e(route('blog.details',[$blog->slug])); ?>"> <?php echo e($truncated_title); ?>
</a> </h2> <div class="blog-details-sec"> <?php $description = strip_tags($blog->description); $max_length = 170; $truncated_description = mb_substr($description, 0, $max_length, 'UTF-8'); if (mb_strlen($description, 'UTF-8') > $max_length) { $truncated_description = mb_substr($truncated_description, 0, mb_strrpos($truncated_description, ' ', 0, 'UTF-8')); $truncated_description .= '...'; } ?> <?php echo $truncated_description; ?>
<?php if(mb_strlen($description, 'UTF-8') > $max_length): ?> <a href="<?php echo e(route('blog.details', [$blog->slug])); ?>">read more</a> <?php endif; ?> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> </div>
</div> </div> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.frontLayout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/portfolio.picotech.app/public_html/resources/views/front/blog.blade.php ENDPATH**/ ?>
|