<?php if (isset($component)) { $__componentOriginal783808d09c489a73db593e82465042f2d47695ce = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\PortalLayout::class, [] + (isset($attributes) ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('portal-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $constructor = (new ReflectionClass(App\View\Components\PortalLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>

    <section id="breadcrumbs" class="breadcrumbs">
        <div class="container">
  
            <div class="d-flex justify-content-between align-items-center">
                <h2>Actualités</h2>
                <ol>
                    <li><a href="<?php echo e(route('portal.home')); ?>">Accueil</a></li>
                    <li>Actualités</li>
                </ol>
            </div>
  
        </div>
    </section>
  
    <section id="blog" class="blog">
        <div class="container" data-aos="fade-up">
  
            <div class="row">
  
                <div class="col-lg-8 entries">
                    
                    <?php $__currentLoopData = $articles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $article): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <article class="entry">
        
                        <div class="entry-img">
                            <img src="<?php echo e(asset('storage/articles/' . $article->filename)); ?>" alt="" class="img-fluid">
                        </div>
        
                        <h2 class="entry-title">
                            <a href="<?php echo e(route('portal.articles.show', $article)); ?>"><?php echo e($article->title); ?></a>
                        </h2>
        
                        <div class="entry-meta">
                            <ul>
                                <li class="d-flex align-items-center"><i class="bi bi-person"></i> <a href=""><?php echo e($article->author->name); ?></a></li>
                                <li class="d-flex align-items-center"><i class="bi bi-clock"></i> <a href=""><time datetime="2020-01-01"><?php echo e($article->formatted_created_at); ?></time></a></li>
                                <!--li class="d-flex align-items-center"><i class="bi bi-chat-dots"></i> <a href="">12 Comments</a></li-->
                            </ul>
                        </div>
            
                        <div class="entry-content">
                            <p>
                                <?php echo e($article->chapo); ?>

                            </p>
                            <div class="read-more">
                                <a href="<?php echo e(route('portal.articles.show', $article)); ?>">Lire la suite More</a>
                            </div>
                        </div>
        
                    </article>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    
                    <!--div class="blog-pagination">
                        <ul class="justify-content-center">
                        <li><a href="#">1</a></li>
                        <li class="active"><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        </ul>
                    </div-->
  
                </div>
  
                <div class="col-lg-4">
                    <?php if(count($posts)): ?>
                    <div class="sidebar">
                        <h3 class="sidebar-title">Articles récents</h3>
                        <div class="sidebar-item recent-posts">
                            <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="post-item clearfix">
                                <img src="<?php echo e(asset('storage/articles/' . $post->filename)); ?>" alt="">
                                <h4><a href="<?php echo e(route('portal.articles.show', $post)); ?>"><?php echo e($post->title); ?></a></h4>
                                <time datetime="2020-01-01"><?php echo e($post->published_date); ?></time>
                            </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                    <?php endif; ?>
        
                </div>
  
            </div>
  
        </div>
    </section>
  
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal783808d09c489a73db593e82465042f2d47695ce)): ?>
<?php $component = $__componentOriginal783808d09c489a73db593e82465042f2d47695ce; ?>
<?php unset($__componentOriginal783808d09c489a73db593e82465042f2d47695ce); ?>
<?php endif; ?><?php /**PATH /var/www/html/beta/elv3/resources/views/portal/articles/index.blade.php ENDPATH**/ ?>