

<?php $__env->startSection('content'); ?>
<div class="container-fluid py-4">
    <div class="row">
        <?php echo $__env->make('partials.sidebar-student', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

        <div class="col-lg-10">
            <h2 class="mb-4 text-primary"><i class="fas fa-folder-open me-2"></i>Downloads</h2>

            <?php
                $downloads = [
                    ['name' => 'Registration Form', 'url' => asset('downloads/registration_form.pdf')],
                    ['name' => 'Fee Structure 2025', 'url' => asset('downloads/fee_structure_2025.pdf')],
                    ['name' => 'Academic Calendar', 'url' => asset('downloads/academic_calendar.pdf')],
                    ['name' => 'Semester Timetable', 'url' => asset('downloads/timetable_semester1.pdf')],
                    ['name' => 'Deferment Application Letter', 'url' => asset('downloads/deferment_letter_sample.pdf')],
                    ['name' => 'Clearance Form', 'url' => asset('downloads/clearance_form.pdf')],
                ];
            ?>

            <div class="table-responsive">
                <table class="table table-bordered table-hover shadow-sm bg-white">
                    <thead class="table-primary">
                        <tr>
                            <th>#</th>
                            <th>Document Name</th>
                            <th>Download Link</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $downloads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $file): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($index + 1); ?></td>
                                <td><?php echo e($file['name']); ?></td>
                                <td>
                                    <a href="<?php echo e($file['url']); ?>" class="btn btn-sm btn-success" target="_blank">
                                        <i class="fas fa-download"></i> Download
                                    </a>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>

            <?php if(empty($downloads)): ?>
                <div class="alert alert-info mt-4">No downloadable files available at this time.</div>
            <?php endif; ?>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\studentportal\resources\views/student/downloads.blade.php ENDPATH**/ ?>