Viewing file: dfc0d43c8965e716b967a588fb8a25ed.php (7.82 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(__('Blog')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('styleplugins'); ?> <style> .post-thumb { display: block; overflow: hidden; height: 300px; } .blog-page{ padding-top: 50px; } </style> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="container mt-5 padding-bottom-3x mb-1 blog-page"> <div class="row "> <!-- Content--> <div class="col-xl-9 col-lg-8 order-lg-2"> <div class="row"> <?php $__empty_1 = true; $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <div class="col-md-6"> <a href="<?php echo e(route('front.blog.details', $post->slug)); ?>" class="blog-post"> <div class="post-thumb"> <?php $decodedPhotos = json_decode($post->photo, true); $firstPhoto = $decodedPhotos ? $decodedPhotos[array_key_first($decodedPhotos)] : null; ?> <img class="lazy" data-src="<?php echo e($firstPhoto ? asset('assets/images/' . $firstPhoto) : asset('assets/images/placeholder.png')); ?>" alt="No Image Found"> </div> <div class="post-body">
<h3 class="post-title"> <?php echo e(Str::limit($post->title, 55)); ?>
</h3> <ul class="post-meta">
<li><i class="icon-user"></i><?php echo e(__('Admin')); ?></li> <li><i class="icon-clock"></i><?php echo e(date('jS F, Y', strtotime($post->created_at))); ?>
</li> </ul> <p><?php echo e(Str::limit(strip_tags($post->details), 120)); ?>
</p> </div> </a> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <div class="col-md-12"> <div class="card"> <div class="card-body text-center"> <?php echo e(__('No Data Found')); ?>
</div> </div> </div> <?php endif; ?>
</div> <div class="row"> <div class="col-lg-12 text-center"> <?php echo e($posts->links()); ?>
</div> </div> </div> <!-- Sidebar --> <div class="col-xl-3 col-lg-4 order-lg-1"> <div class="sidebar-toggle position-left"><i class="icon-filter"></i></div> <aside class="sidebar sidebar-offcanvas position-left"><span class="sidebar-close"><i class="icon-x"></i></span> <!-- Widget Search--> <section class="widget"> <form action="<?php echo e(route('front.blog')); ?>" class="input-group form-group" method="get"><span class="input-group-btn"> <button type="submit"><i class="icon-search"></i></button></span> <input class="form-control" name="search" type="text" placeholder="<?php echo e(__('Search blog')); ?>"> </form> </section> <!-- Widget Categories--> <section class="widget widget-categories card rounded p-4 mt-n3"> <h3 class="widget-title"><?php echo e(__('Blog Categories')); ?></h3> <ul> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><a href="<?php echo e(route('front.blog') . '?category=' . $category->slug); ?>"><?php echo e($category->name); ?></a><span><?php echo e($category->posts_count); ?></span> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul> </section> <!-- Widget Featured Posts--> <section class="widget widget-featured-posts card rounded p-4"> <h3 class="widget-title"><?php echo e(__('Most Recent Added Posts')); ?></h3> <?php $__currentLoopData = $recent_posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $recent): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="entry"> <?php $recentPhotos = json_decode($recent->photo, true); $firstRecentPhoto = $recentPhotos ? $recentPhotos[array_key_first($recentPhotos)] : null; ?> <div class="entry-thumb"> <a href="<?php echo e(route('front.blog.details', $recent->slug)); ?>"> <img src="<?php echo e($firstRecentPhoto ? asset('assets/images/' . $firstRecentPhoto) : asset('assets/images/placeholder.png')); ?>" alt="Post"> </a> </div> <div class="entry-content"> <h4 class="entry-title"><a href="<?php echo e(route('front.blog.details', $recent->slug)); ?>"> <?php echo e(Str::limit($recent->title, 55)); ?>
</a></h4><span class="entry-meta"><?php echo e(__('by')); ?> <?php echo e(__('Admin')); ?></span> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </section> <!-- Widget Tags--> <section class="widget widget-featured-posts card rounded p-4"> <h3 class="widget-title"><?php echo e(__('Popular Tags')); ?></h3> <div> <?php $__currentLoopData = $tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a class="tag" href="<?php echo e(route('front.blog') . '?tag=' . $tag); ?>"><?php echo e($tag); ?></a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </section> </aside> </div>
</div> </div> <?php $__env->stopSection(); ?>
<?php echo $__env->make('master.front', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/game.picotech.app/public_html/core/resources/views/front/blog/index.blade.php ENDPATH**/ ?>
|