54 lines
2.4 KiB
PHP
54 lines
2.4 KiB
PHP
|
|
<main class="common_margin" id="main">
|
|
<div class="main-wrap">
|
|
<div class="classes-section">
|
|
<div class="class-head">
|
|
<h3 class="common-heading">Today's Classes</h3>
|
|
|
|
</div>
|
|
<div class="class-section-main">
|
|
<?php if (isset($subject_names) || !empty($subject_names)) { ?>
|
|
<?php foreach ($subject_names as $key => $value) {?>
|
|
|
|
<div class="class-tab">
|
|
<div class="class-tab-img">
|
|
<?php if(array_key_exists("teacher_name",$value)) { ?>
|
|
<img src="<?php echo base_url(); ?>assets_admin/images/teacher-profile/<?= $value['teacher_image']?>">
|
|
<?php } else { ?>
|
|
<img src="<?php echo base_url(); ?>assets_admin/images/teacher-profile/dummy-user.png">
|
|
<?php } ?>
|
|
|
|
|
|
</div>
|
|
<div class="class-tab-details">
|
|
<?php if(array_key_exists("teacher_name",$value)) { ?>
|
|
<h4> <?= $value['teacher_name'] ?> </h4>
|
|
<?php } else {
|
|
echo '<h4>Uknown Teacher</h4>';
|
|
} ?>
|
|
|
|
<p title="math:Trigonometry"><?= $value['subject_name']?></p>
|
|
<?php if($value['class_session'] == 'Active') { ?>
|
|
<a target="_blank" href="<?= $value['join_link'] ?>" class="join-class-btn">Join Class</a>
|
|
<?php } else { ?>
|
|
<p><?= $value['class_time'] ?></p>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<?php } }else{?>
|
|
|
|
<h4 class="text-info mt-4 ml-3">No Class Assigned</h4>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="check-syllabus-btn">
|
|
<a class="check-syllabus" href="<?= base_url(); ?>student/my-syllabus">
|
|
<img src="<?php echo base_url(); ?>assets_student/images/syllabus.png">
|
|
<h5>Check Syllabus</h5>
|
|
</a>
|
|
</div>
|
|
</main>
|