<?php if(count($articles) > 0): ?>
    <div class="slick-nav">
        <?php $__currentLoopData = $years; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $year): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <p><?php echo e($year); ?></p>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

    </div>
    <div class="slick-slider">

        <?php $__currentLoopData = $allYears; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $year => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="blog-slide">
                <?php $__currentLoopData = $value; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="items <?php if(request('id') != null && $val['id'] == request('id')): ?> currentItem <?php endif; ?>">
                        <div class="info text-left">
                            <?php
                                $date= date('M Y', strtotime($val['added_year']));
                                $description= strip_tags($val['description']);
                                $newsTitle = str_split($val['title'], round(mb_strlen($val['title'])/2));
                                // $description = str_split($description, round(mb_strlen($description)/2));
                            ?>
                            <h6 class="text-uppercase"><?php echo e($val['company_name']); ?> <span><?php echo e($date); ?></span></h6>
                            
                            <h3><?php echo $val['title']; ?></h3>

                            <p><?php echo $description; ?></p>
                            
                        </div>
                        <div class="img">
                            <img src="<?php echo e(asset($val['company_logo'])); ?>" alt="<?php echo e($val['title']); ?>">
                            <img src="<?php echo e(asset($val['image'] ?? $val['AImage'] ?? $val['company_logo'])); ?>" alt="<?php echo e($val['title']); ?>" class="mirror">
                            <span class="date"><?php echo e($date); ?></span>
                            <span class="blog-title">
                                        <strong><?php echo e($val['title']); ?></strong>
                                        
                                    </span>
                        </div>
                        <span class="cls"><i class="fas fa-times"></i> close</span>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

    </div>
<?php else: ?>

    <div class="alert alert-info text-center"><h5>There is no news</h5></div>
<?php endif; ?>



<?php if(app()->getLocale() == 'ar'): ?>
    <!--With LTR -->
    <script src="<?php echo e(asset('assets/web/js/main-ar.js')); ?> "></script>
<?php else: ?>
    <!--With RTL -->
    <script src="<?php echo e(asset('assets/web/js/main.js')); ?> "></script>
<?php endif; ?>
<?php /**PATH C:\wamp64\www\nesma\resources\views/web/news/get_company_news.blade.php ENDPATH**/ ?>