

<?php $__env->startSection('title', 'My Courses'); ?>
<?php $__env->startSection('page-title', 'My Courses'); ?>

<?php $__env->startSection('content'); ?>
    <div class="card">
        <div class="card-header">
            <h3><i class="fas fa-book"></i> My Courses</h3>
        </div>
        
        <div style="padding: 0 30px 30px 30px;">
            <?php if($courses->count() > 0): ?>
                <table class="table">
                    <thead>
                        <tr>
                            <th>Code</th>
                            <th>Course Name</th>
                            <th>Credits</th>
                            <th>Fees</th>
                            <th>Students Enrolled</th>
                            <th>Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $courses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $course): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><strong><?php echo e($course->code); ?></strong></td>
                                <td><?php echo e($course->name); ?></td>
                                <td><?php echo e($course->credits); ?></td>
                                <td>₵<?php echo e(number_format($course->fees, 2)); ?></td>
                                <td><?php echo e($course->enrollments_count); ?></td>
                                <td>
                                    <a href="<?php echo e(route('instructor.courses.show', $course->id)); ?>" class="btn btn-primary" style="padding: 6px 12px; font-size: 12px;">
                                        <i class="fas fa-eye"></i> View Details
                                    </a>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            <?php else: ?>
                <div style="text-align: center; padding: 40px; color: #888;">
                    <p><i class="fas fa-book" style="font-size: 48px; margin-bottom: 15px; opacity: 0.5;"></i></p>
                    <p>No courses assigned to you yet.</p>
                    <p style="font-size: 14px; margin-top: 10px;">Please contact the administrator to get courses assigned.</p>
                </div>
            <?php endif; ?>
        </div>
    </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.instructor', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/iksoftte/portal.afrilen.com/resources/views/instructor/courses/index.blade.php ENDPATH**/ ?>