<?php
    $firstPost = $content->first();
?>
<?php if(!blank($content)): ?>
    <div class="sg-widget">
        <h3 class="widget-title"><?php echo e(data_get($detail, 'title')); ?></h3>

        <div class="sg-post featured-post">
            <?php echo $__env->make('site.partials.home.category.first_post', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <div class="entry-content absolute">
                <div class="category">
                    <ul class="global-list">
                        <?php if(isset($firstPost->category)): ?>
                            <li><a href="<?php echo e(url('category',$firstPost->category->slug)); ?>"><?php echo e(data_get($firstPost, 'category.category_name')); ?></a></li>
                        <?php endif; ?>
                    </ul>
                </div>
                <h2 class="entry-title">
                    <a href="<?php echo e(route('article.detail', [$firstPost->slug])); ?>"><?php echo e(\Illuminate\Support\Str::limit(data_get($firstPost, 'title'), 100)); ?></a>
                </h2>
                <div class="entry-meta">
                    <ul class="global-list">
                        <li><?php echo e(__('post_by')); ?><a href="<?php echo e(route('site.author',['id' => $firstPost->user->id])); ?>"> <?php echo e(data_get($firstPost, 'user.first_name')); ?></a></li>
                        <li><a href="<?php echo e(route('article.date', date('Y-m-d', strtotime($firstPost->updated_at)))); ?>"> <?php echo e(Carbon\Carbon::parse($firstPost->updated_at)->translatedFormat('F j, Y')); ?></a></li>
                    </ul>
                </div>
            </div>
        </div>

        <ul class="global-list">
            <?php $__currentLoopData = $content; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php if(!$loop->first): ?>
                    <li>
                        <div class="sg-post small-post post-style-1">
                            <?php echo $__env->make('site.partials.home.category.post_block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            <div class="entry-content">
                                <a href="<?php echo e(route('article.detail', ['id' => $post->slug])); ?>"><p><?php echo e(\Illuminate\Support\Str::limit(data_get($post, 'title'), 25)); ?></p></a>
                                <div class="entry-meta">
                                    <ul class="global-list">
                                        <li class="d-sm-none d-md-none d-lg-block"><?php echo e(__('post_by')); ?><a href="<?php echo e(route('site.author',['id' => $post->user->id])); ?>"> <?php echo e(data_get($post, 'user.first_name')); ?></a></li>
                                        <li><a href="<?php echo e(route('article.date', date('Y-m-d', strtotime($post->updated_at)))); ?>"> <?php echo e(Carbon\Carbon::parse($post->updated_at)->translatedFormat('F j, Y')); ?></a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </li>
                <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>
    </div>
<?php endif; ?>
<?php /**PATH C:\laragon\www\onno_installer_143\resources\views/site/widgets/recommended_posts.blade.php ENDPATH**/ ?>