<?php $__env->startSection('content'); ?>
    <?php
    
    use Carbon\Carbon;
    use App\Model\Student_fees;
    
    ?>

    <link href="<?php echo asset('theme/user_theme/css/profile_courses.css'); ?>" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
    <link href="<?php echo asset('theme/user_theme/css/medical2.css'); ?>" rel="stylesheet">


    <section>
        <div class="corsdetailarea">
            <div class="container">
                <div class="row">
                    <div class="col-sm-12">
                        <div class="corsdetailareadata" >
                            <div style="text-align: center;" class="rehedic">
                                <h1 style="border-radius: 0px 25px 25px 0px; width: max-content;">Courses Register Details :</h1>
                            </div>

                            <table class="table prtable">
                                <thead>
                                    <tr>
                                        <th scope="col">Sno</th>
                                        <th scope="col">User</th>
                                        <th scope="col">Course</th>
                                        <th scope="col">Group</th>
                                        <th scope="col">Teacher</th>
                                        <th scope="col">Join Class </th>
                                        <!-- <th scope="col">Venu</th> -->
                                        <!-- <th scope="col">Timming</th> -->
                                        <!-- <th scope="col">Action</th> -->
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php
                                    $join_class = '';
                                    
                                    ?>
                                    <?php $__currentLoopData = $course_register; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php
                                        $date = Carbon::now();
                                        $current_date = strtotime($date);
                                        ?>
                                        <tr>
                                            <td scope="row"><?php echo e($key + 1); ?></td>
                                            <td><?php echo e($c->user->name ?? ''); ?></td>
                                            <td><?php echo e($c->group->courses->full_name ?? ''); ?></td>
                                            <td><?php echo e(ucwords($c->group->name ?? '')); ?></td>
                                            <td><?php echo e($c->group->teacher->name ?? ''); ?></td>

                                            <td>
                                                <?php if($c->student_feess->count() > 0): ?>
                                                    <!-- <a href="<?php echo e(asset('user_show_payment?student_id_not_paid=' . $c->id)); ?>" type="button" class="btn btn-danger" style="margin-bottom: 14px;"> -->
                                                    <a href="<?php echo e(asset('user_show_payment?course_register=' . $c->id)); ?>"
                                                        type="button" class="btn btn-danger" style="margin-bottom: 14px;">
                                                        Due Date Have Passed.
                                                    </a>
                                                <?php else: ?>
                                                    <?php if($c->group->is_online != 0): ?>
                                                        <a href="<?php echo e(asset('course/frame/?group_id=' . $c->group->id)); ?>"
                                                            target="_blank" style="margin-bottom: 14px;">
                                                            Join Class Link

                                                        </a>
                                                    <?php else: ?>
                                                        <?php echo e($c->course->group->venue); ?> Location
                                                    <?php endif; ?>
                                                <?php endif; ?>
                                            </td>

                                        </tr>
                                        
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('user.layout.header_footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/demohatinco/public_html/medical2_backend/resources/views/user/profile_courses.blade.php ENDPATH**/ ?>