


<?php
    $app_local  = get_default_language_code();
?>
<?php $__env->startSection('content'); ?>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<section class="blog-section ptb-120">
    <div class="container">
        <div class="row mb-30-none">
            <div class="col-xl-8 col-lg-8 col-md-12 mb-30">
                <div class="row mb-50-none">
                    <?php $__currentLoopData = $journal; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-xl-6 col-lg-6 col-md-6 mb-50">
                            <div class="blog-item">
                                <div class="thumb">
                                    <img src="<?php echo e(get_image($item->data->image ?? '' , 'site-section') ?? ''); ?>" alt="">
                                </div>
                                <div class="icon-wrapper">
                                    <div class="icon">
                                        <i class="<?php echo e($item->data->language->$app_local->icon ?? ""); ?>"></i>
                                    </div>
                                </div>
                                <div class="content">
                                    <a href="<?php echo e(setRoute('frontend.journal.details',$item->slug)); ?>" class="title"><?php echo e(Str::words($item->data->language->$app_local->title ?? '',5,'...')); ?></a>
                                    <p><?php echo Str::words($item->data->language->$app_local->description ?? '' , 10 , '...'); ?></p>
                                </div>
                                <div class="blog-item-btn-area text-center">
                                    <a href="<?php echo e(setRoute('frontend.journal.details',$item->slug)); ?>"><i class="las la-arrow-right"></i></a>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            </div>
            <div class="col-xl-4 col-lg-4 col-md-12 mb-30">
                <div class="blog-sidebar">
                    <div class="widget-box mb-30">
                        <h4 class="widget-title"><?php echo e(__("Recent Posts")); ?></h4>
                        <div class="popular-widget-box">
                            <?php $__currentLoopData = $journal; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="single-popular-item d-flex flex-wrap align-items-center">
                                    <div class="popular-item-thumb">
                                        <a href=""><img src="<?php echo e(get_image($item->data->image,'site-section') ?? ''); ?>" alt="blog"></a>
                                    </div>
                                    <div class="popular-item-content">
                                        <?php
                                            $date = $item->created_at ?? "";
                                            $formattedDate = date('M d, Y', strtotime($date));
                                        ?>
                                        <span class="date"><?php echo e($formattedDate); ?></span>
                                        <h5 class="title"><a href="<?php echo e(setRoute('frontend.journal.details',$item->slug)); ?>"><?php echo e(Str::words($item->data->language->$app_local->title ?? '',5,'...')); ?></a></h5>
                                    </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                    
                </div>
            </div>
        </div>
        <nav>
            <?php echo e(get_paginate($journal)); ?>

        </nav>
    </div>
</section>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    End Blog
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp\htdocs\adoctor-update_version\resources\views/frontend/pages/journals.blade.php ENDPATH**/ ?>