<?php $__env->startSection('content'); ?>
    <main>
        <section class="sub-header">
            <div class="container">
                <div class="contain">
                    <h1>
                        <?php echo e(__('messages.news')); ?>

                    </h1>

                    <ul class="list">
                        <li>
                            <a href="<?php echo e(route('home')); ?>">
                                <?php echo e(__('messages.home')); ?>

                            </a>
                        </li>
                        <li>
                            <span>
                                <?php echo e(__('messages.news')); ?>

                            </span>
                        </li>
                    </ul>
                </div>
            </div>
        </section>

        <section class="blog general-section">
            <div class="container">
                <div class="custom-heading">
                    <h1><?php echo e(__('messages.news')); ?></h1>
                </div>

                <div class="row">
                    <?php $__currentLoopData = $news; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $new): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-lg-4 col-12 mb-4">
                            <div class="blog-box">
                                <div class="image-contain">
                                    <img
                                        src="<?php echo e(asset('Events_images/' . $new->photo)); ?>"
                                        loading="lazy"
                                        alt=""
                                    />
                                </div>

                                <div class="contain">
                                    <div class="date">
                                        <img
                                            src="<?php echo e(asset('assets/images/icons/time.svg')); ?>"
                                            loading="lazy"
                                            alt=""
                                        />
                                        <span> <?php echo e($new->date); ?></span>
                                    </div>

                                    <h2>
                                        <?php if(App::getLocale() == 'ar'): ?>
                                            <?php echo e($new->ar_title); ?>

                                        <?php else: ?>
                                            <?php echo e($new->en_title); ?>

                                        <?php endif; ?>
                                    </h2>

                                    <p>
                                        <?php if(App::getLocale() == 'ar'): ?>
                                            <?php echo $new->ar_summary; ?>

                                        <?php else: ?>
                                            <?php echo $new->en_summary; ?>

                                        <?php endif; ?>
                                    </p>

                                    <a href="<?php echo e(route('new_details', $new->id)); ?>" class="see-more">
                                        <img
                                            src="<?php echo e(asset('assets/images/icons/arrow_right.svg')); ?>"
                                            loading="lazy"
                                            alt=""
                                        />
                                        <span><?php echo e(__('messages.see_more')); ?></span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>

                <!-- Pagination -->
                <div class="col-12">
                    <ul class="pagination">
                        <?php echo e($news->links()); ?> <!-- توليد روابط التنقل بين الصفحات -->
                    </ul>
                </div>
            </div>
        </section>
    </main>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\cementstate\resources\views/news.blade.php ENDPATH**/ ?>