<div id="patronicLatestNewsCarousel" class="carousel slide">
    <ol class="carousel-indicators">
        <?php $__currentLoopData = $patronicNews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $newsItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <li data-target="#patronicLatestNewsCarousel" data-slide-to="<?php echo e($loop->index); ?>" <?php if($loop->first): ?> class="active" <?php endif; ?>></li>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </ol>
    <div class="carousel-inner">
        <?php $__currentLoopData = $patronicNews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $newsItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="carousel-item <?php if($loop->first): ?> active <?php endif; ?>">
            <div class="row mb-3">
                <div class="col">
                    <div class="latest-news-item card-box mb-0">
                        <div class="latest-news-header">
                            <h4 class="mt-0 mb-2">
                                <a class="text-secondary" href="<?php echo e($newsItem['link']); ?>"><?php echo e($newsItem['title']['rendered']); ?></a>
                                <?php if(\Carbon\Carbon::createFromTimeString($newsItem['date'])->diffInHours() < 48): ?>
                                    <small class="text-danger">(جدید)</small>
                                <?php endif; ?>
                            </h4>
                            <span class="text-muted"><?php echo jdate($newsItem['date'])->format(' Y-m-d'); ?></span>
                        </div>
                        <div class="latest-news-excerpt mb-2"><?php echo e(\Illuminate\Support\Str::words(strip_tags($newsItem['content']['rendered']), 25)); ?></div>
                    </div>
                </div>
            </div>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
</div>
<?php /**PATH /home/iphoneun/public_html/peygirsho.ir/patronic/resources/views/partials/patronic-news.blade.php ENDPATH**/ ?>