Viewing file: 48f86d230171b64341c2fb4394bd0793.php (13.19 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', __('blog_posts')); ?>
<?php $__env->startSection('meta'); ?> <?php $data = metaData('blog'); ?>
<meta name="title" content="<?php echo e($data->title); ?>"> <meta name="description" content="<?php echo e($data->description); ?>">
<meta property="og:image" content="<?php echo e($data->image_url); ?>" /> <meta property="og:site_name" content="<?php echo e(config('app.name')); ?>"> <meta property="og:title" content="<?php echo e($data->title); ?>"> <meta property="og:url" content="<?php echo e(route('frontend.blog')); ?>"> <meta property="og:type" content="article"> <meta property="og:description" content="<?php echo e($data->description); ?>">
<meta name=twitter:card content="<?php echo e($data->image_url); ?>" /> <meta name=twitter:site content="<?php echo e(config('app.name')); ?>" /> <meta name=twitter:url content="<?php echo e(route('frontend.blog')); ?>" /> <meta name=twitter:title content="<?php echo e($data->title); ?>" /> <meta name=twitter:description content="<?php echo e($data->description); ?>" /> <meta name=twitter:image content="<?php echo e($data->image_url); ?>" /> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <div> <?php if (isset($component)) { $__componentOriginal044f5af546c391ddc719bb44e1cd807e = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal044f5af546c391ddc719bb44e1cd807e = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.breadcrumb.breadcrumb','data' => ['links' => [ ['url' => '#', 'text' => __('blog')] ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.breadcrumb.breadcrumb'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['links' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([ ['url' => '#', 'text' => __('blog')] ])]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal044f5af546c391ddc719bb44e1cd807e)): ?> <?php $attributes = $__attributesOriginal044f5af546c391ddc719bb44e1cd807e; ?> <?php unset($__attributesOriginal044f5af546c391ddc719bb44e1cd807e); ?> <?php endif; ?> <?php if (isset($__componentOriginal044f5af546c391ddc719bb44e1cd807e)): ?> <?php $component = $__componentOriginal044f5af546c391ddc719bb44e1cd807e; ?> <?php unset($__componentOriginal044f5af546c391ddc719bb44e1cd807e); ?> <?php endif; ?>
<!-- Blog-list section Start --> <section class="py-16 dark:bg-gray-800"> <div class="container"> <div class="flex flex-col lg:flex-row gap-6"> <div class="blog-sidebar flex flex-col gap-5 lg:w-1/3 w-full">
<!-- Search--> <div class="p-8 rounded-lg bg-white dark:bg-gray-900 border border-gray-50 dark:border-gray-600 shadow"> <h2 class="heading-05 dark:text-white mb-4"><?php echo e(__('search')); ?></h2> <form action="<?php echo e(route('frontend.blog')); ?>" method="GET" id="searchForm"> <input type="search" name="keyword" value="<?php echo e(request('keyword')); ?>" placeholder="<?php echo e(__('search')); ?>" class="tc-input">
<input id="categoryWiseSorting" name="category" type="hidden" value="<?php echo e(request('category', '')); ?>"> </form> </div>
<!-- Category --> <?php if($topCategories->count() > 0): ?> <div class="p-8 rounded-lg bg-white dark:bg-gray-900 border border-gray-50 dark:border-gray-600 shadow"> <div class="grid grid-cols-2 gap-5 "> <?php $__currentLoopData = $topCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a href="<?php echo e(route('frontend.blog', ['category' => $category->slug])); ?>" class="blog-category group"> <img class="w-full h-20 object-cover transition-all duration-300 group-hover:scale-125" src="<?php echo e($category->image_url); ?>" alt="category-img"> <h2 class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-50 text-center text-white w-full"><?php echo e($category->name); ?></h2> </a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php endif; ?> <!-- Category -->
<!-- Recent Post --> <?php if($recentBlogs->count() > 0): ?> <div class="p-8 rounded-lg bg-white dark:bg-gray-900 border border-gray-50 dark:border-gray-600 shadow"> <h2 class="heading-05 dark:text-white mb-4"><?php echo e(__('recent_post')); ?></h2> <div class="flex flex-col gap-4"> <?php $__currentLoopData = $recentBlogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a href="<?php echo e(route('frontend.single.blog', $post->slug)); ?>" class="flex gap-3 items-center group"> <img class="w-20 h-16 rounded-md object-cover" src="<?php echo e($post->image_url); ?>" alt="post-img"> <div> <h3 class="body-md-500 dark:text-white line-clamp-1 mb-1.5 group-hover:text-primary-500"><?php echo e(Str::limit($post->title, 48, '...')); ?></h3> <div class="body-sm-400 text-gray-600 dark:text-gray-400 flex gap-2 items-center"> <span><?php echo e($post->created_at->format('M d, Y')); ?></span> <span>.</span> <span><?php echo e($post->comments_count); ?> <?php echo e(__('comments')); ?></span> </div> </div> </a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php endif; ?> <!-- Recent Post -->
<!-- google adsense area --> <?php if(advertisementCode('blog_page_left')): ?> <div class="h-[400px] max-h-[400px]"> <?php echo advertisementCode('blog_page_left'); ?>
</div> <?php endif; ?> <!-- google adsense area end --> <!-- google adsense area end -->
</div> <div class="lg:w-2/3 w-full"> <?php if($blogs->count() > 0): ?> <div class="flex flex-col gap-5"> <?php $__currentLoopData = $blogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <!-- google adsense area --> <?php if($key == 3): ?> <?php if(advertisementCode('blog_page_inside_blog')): ?> <div class="h-[400px] max-h-[400px]"> <?php echo advertisementCode('blog_page_inside_blog'); ?>
</div> <?php endif; ?> <?php endif; ?> <!-- google adsense area end -->
<a href="<?php echo e(route('frontend.single.blog', $post->slug)); ?>" class="flex flex-col md:flex-row gap-6 md:items-center p-6 rounded-md dark:bg-gray-900 border border-gray-50 dark:border-gray-600 shadow hover:shadow-md transition-all duration-300 group"> <img class="w-full min-h-[200px] md:min-w-[250px] md:max-w-[250px] rounded-md object-cover" src="<?php echo e($post->image_url); ?>" alt=""> <div> <h3 class="heading-06 dark:text-white mb-2 group-hover:text-primary-500"> <?php echo e(Str::limit($post->title, 48, '...')); ?>
</h3> <p class="body-sm-400 dark:text-gray-200 line-clamp-3 mb-4"><?php echo e(Str::limit($post->short_description, 180, '...')); ?></p> <div class="body-sm-400 text-gray-600 dark:text-gray-400 flex gap-2 items-center"> <span><?php echo e($post->created_at->format('M d, Y')); ?></span> <span>.</span> <span><?php echo e($post->comments_count); ?> <?php echo e(__('comments')); ?></span> </div> <button class="text-primary-500 mt-3"><?php echo e(__('read_more')); ?></button> </div> </a>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php else: ?> <div class="flex justify-center items-center"> <?php if (isset($component)) { $__componentOriginal1d4836cf2a383e6bf24022dc2d7bd279 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal1d4836cf2a383e6bf24022dc2d7bd279 = $attributes; } ?> <?php $component = App\View\Components\NotFound2::resolve(['message' => 'No posts found'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('not-found2'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\NotFound2::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal1d4836cf2a383e6bf24022dc2d7bd279)): ?> <?php $attributes = $__attributesOriginal1d4836cf2a383e6bf24022dc2d7bd279; ?> <?php unset($__attributesOriginal1d4836cf2a383e6bf24022dc2d7bd279); ?> <?php endif; ?> <?php if (isset($__componentOriginal1d4836cf2a383e6bf24022dc2d7bd279)): ?> <?php $component = $__componentOriginal1d4836cf2a383e6bf24022dc2d7bd279; ?> <?php unset($__componentOriginal1d4836cf2a383e6bf24022dc2d7bd279); ?> <?php endif; ?> </div> <?php endif; ?>
<!-- Pagination Start --> <div class="page-navigation"> <?php echo e($blogs->links('vendor.pagination.custom')); ?>
</div> <!-- Pagination End -->
</div> </div> </div> </section> <!-- Blog-list section End -->
</div> <?php $__env->stopSection(); ?> <?php $__env->startPush('css'); ?> <style> </style> <?php $__env->stopPush(); ?>
<?php echo $__env->make('frontend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/classify.picotech.app/public_html/resources/views/frontend/blog.blade.php ENDPATH**/ ?>
|