<?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><?php echo e($titles[$page]); ?></h2>
                <ol>
                    <li><a href="<?php echo e(route('portal.home')); ?>">Accueil</a></li>
                    <li><?php echo e($titles[$page]); ?></li>
                </ol>
            </div>

        </div>
    </section>

    <section id="document" class="pricing">
        <div class="container" data-aos="fade-up">
  
            <div class="row">
  
                <div class="col-lg-8">
                    <div class="row m-0">

                        <?php $__currentLoopData = $documents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $document): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-lg-6 d-flex flex-column mb-4">
                            <div class="box h-100 bg-light p-3">
                                <iframe src="<?php echo e(asset('storage/documents/' . $document->filename)); ?>" frameBorder="0"></iframe>

                                <div class="py-3">
                                    <a class="btn-buy" href="<?php echo e(asset('storage/documents/' . $document->filename)); ?>">Télécharger</a>
                                </div>
                                <p class="mb-0"><?php echo e($document->title); ?></p>
                            </div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </div>
                </div>

                <div class="col-lg-4">
                    <div class="sidebar">
                        <h4 class="mb-3">Documents récents</h4>
                        <?php $__currentLoopData = $types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="sidebar-title"><?php echo e(ucfirst($type)); ?></div>
                            <div class="sidebar-item">
                                <?php $__currentLoopData = $recents[$type]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $recent): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="d-flex mb-2">
                                        <i class="bi bi-file-earmark-pdf-fill"></i>
                                        <a href="<?php echo e(asset('storage/documents/' . $recent->filename)); ?>"><?php echo e($recent->title); ?></a>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
        
                </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/documents/index.blade.php ENDPATH**/ ?>