

<?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-success"><i class="fas fa-bullhorn me-2"></i>Latest Campus Notices</h2>

            <?php if(session('success')): ?>
                <div class="alert alert-success"><?php echo e(session('success')); ?></div>
            <?php endif; ?>

            
            <?php
                $notices = [
                    ['title' => 'Mid-Semester Exams Start 22 July 2025', 'content' => 'All students are advised that mid-semester exams commence on 22 July 2025. Please ensure you check your timetable and venue in advance.', 'date' => '2025-07-15'],
                    ['title' => 'Library Registration Ends 19 July', 'content' => 'Students who haven’t registered with the library must do so by 19 July to access course materials and online journals.', 'date' => '2025-07-14'],
                    ['title' => 'New Wi-Fi Password Available', 'content' => 'The campus Wi-Fi password has been updated. Please visit the ICT office with your student ID to get access credentials.', 'date' => '2025-07-13'],
                ];
            ?>

            <?php $__currentLoopData = $notices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="card mb-3 shadow-sm border-start border-4 border-success">
                    <div class="card-body">
                        <h5 class="card-title text-success"><i class="fas fa-circle-info me-1"></i><?php echo e($notice['title']); ?></h5>
                        <p class="card-text"><?php echo e($notice['content']); ?></p>
                        <small class="text-muted">Posted on <?php echo e(\Carbon\Carbon::parse($notice['date'])->format('d M Y')); ?></small>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            
            <?php if(empty($notices)): ?>
                <div class="alert alert-info">No notices 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/notices.blade.php ENDPATH**/ ?>