<?php $__env->startSection('content'); ?>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <div class="container my-4">
        <div class="row mt-5">
            <hr>
            <div class="col-md-12">
                <h4>Historial de Archivos Producto Terminado</h4>
            </div>
        </div>
        
        <?php $__currentLoopData = $files; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $year => $months): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="accordion mb-3" id="accordion-<?php echo e($year); ?>">
                <div class="accordion-item">
                    <h2 class="accordion-header" id="heading-<?php echo e($year); ?>">
                        <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
                            data-bs-target="#collapse-<?php echo e($year); ?>" aria-expanded="false"
                            aria-controls="collapse-<?php echo e($year); ?>">
                            <?php echo e($year); ?>

                        </button>
                    </h2>
                    <div id="collapse-<?php echo e($year); ?>" class="accordion-collapse collapse"
                        aria-labelledby="heading-<?php echo e($year); ?>" data-bs-parent="#accordion-<?php echo e($year); ?>">
                        <div class="accordion-body">
                            <div class="accordion" id="accordion-months-<?php echo e($year); ?>">
                                <?php $__currentLoopData = $months; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $month => $files): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="accordion-item">
                                        <h2 class="accordion-header"
                                            id="heading-month-<?php echo e($year); ?>-<?php echo e($month); ?>">
                                            <button class="accordion-button collapsed" type="button"
                                                data-bs-toggle="collapse"
                                                data-bs-target="#collapse-month-<?php echo e($year); ?>-<?php echo e($month); ?>"
                                                aria-expanded="false"
                                                aria-controls="collapse-month-<?php echo e($year); ?>-<?php echo e($month); ?>">
                                                <?php echo e(\Carbon\Carbon::create(null, $month)->locale('es')->translatedFormat('F')); ?>

                                            </button>
                                        </h2>
                                        <div id="collapse-month-<?php echo e($year); ?>-<?php echo e($month); ?>"
                                            class="accordion-collapse collapse"
                                            aria-labelledby="heading-month-<?php echo e($year); ?>-<?php echo e($month); ?>"
                                            data-bs-parent="#accordion-months-<?php echo e($year); ?>">
                                            <div class="accordion-body">
                                                <ul>
                                                    <?php $__currentLoopData = $files; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $file): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <li class="my-2">
                                                            <span class="mx-5"><?php echo e($file->file_name); ?></span>

                                                            
                                                            <a href="<?php echo e(url($file->file_path)); ?>"
                                                                class="btn btn-success btn-sm">
                                                                Descargar
                                                            </a>
                                                        </li>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('reportes.menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/devpwg5/laravelrp.com/resources/views/reportes/gerencia/producto-terminado.blade.php ENDPATH**/ ?>