
<?php $__env->startSection('title', 'اخبار - '); ?>
<?php $__env->startSection('main'); ?>

<main class="container mb-5">
    <h2 class="mb-4">اخبار</h2>
    <div class="row">
        <div class="col-12">
            <?php $__empty_1 = true; $__currentLoopData = $news; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $newsItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="news-item" id="news-<?php echo e($newsItem->id); ?>">
                    <div class="clearfix news-title">
                        <h5 class="header-title float-right"><a href="<?php echo e(route('news.show', $newsItem)); ?>"><?php echo e($newsItem->title); ?></a></h5>
                        <small class="float-left text-muted"><?php echo jdate($newsItem->created_at)->format('Y/m/d'); ?></small>
                    </div>
                    <div class="news-excerpt">
                        <?php echo e(Illuminate\Support\Str::words(strip_tags($newsItem->content), 50, '...')); ?>

                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <h3>اخباری یافت نشد!</h3>
            <?php endif; ?>
        </div>
    </div>

</main>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.public-master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/iphoneun/public_html/peygirsho.ir/patronic/resources/views/public/news.blade.php ENDPATH**/ ?>