    <link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.9.2/semantic.min.css" rel="stylesheet" type="text/css" />
    <link href="https://cdn.datatables.net/2.0.2/css/dataTables.semanticui.css" rel="stylesheet" type="text/css" />
    
   <div class="cmt-page-title-row bg-base-dark cmt-bg cmt-bgimage-yes clearfix">
	 <div class="cmt-titlebar-wrapper-bg-layer cmt-bg-layer"></div>
	    <div class="container">
	        <div class="row align-items-center">
	            <div class="col-lg-12">
	                <div class="cmt-page-title-row-inner">
	                    <div class="page-title-heading">
	                        <h4 class="title"><?php echo $course->courseName;?></h4>
	                    </div>
	                </div>
	            </div>
	        </div>
	    </div>                    
	</div>

<div class="container-fluid">
	<div class="profile-body">
		<div class="row margin-bottom-10">
			<div class="col-lg-7 sm-margin-bottom-20 instructor-bx">
				<div class="tag-box tag-box-v1 box-shadow shadow-effect-2">
			<p><?php echo $course->introText?></p>				
			</div>
		</div>


		<div class="col-lg-5 featured-icon-box icon-align-top-content style4">
            <div class="featured-icon">
                
            </div>
            <div class="featured-content">
                <div class="featured-title">
                    <h3>Course Schedule</h3>
                </div>
                <div class="featured-desc">
                    <table id="example" class="ui celled table" style="width:100%">
								<thead class="heading-xs">
									<tr class="">
										<th>Start Date</th>
										<th>End Date</th>
										<th>Location</th>
										<th>Fees</th>
										<th>Action</th>
									</tr>
								</thead>
								<tbody class="heading-xs">
									<?php foreach($schedules as $schedule) :
									$startDate=explode('-',$schedule['startDate']);
									$startDate=$startDate[2].'/'.$startDate[1].'/'.$startDate[0];

									$endDate=explode('-',$schedule['endDate']);
									$endDate=$endDate[2].'/'.$endDate[1].'/'.$endDate[0];
                                           ?>
									<tr>
										<td><?php echo $startDate;?></td>
										<td><?php echo $endDate;?></td>
										<td><?php echo $schedule['location'];?></td>
										<td>$<?php echo $schedule['fees'];?></td>
										<?php

										if($userId){
											?>
										<td><a class="btn btn-primary" href="<?php echo base_url('updateschedule/'.$schedule['scheduleID']);?> " > Update</a></td>
										<?php
									}else{  ?>
									<td><a style="margin-bottom: 10px;" class="btn-xs btn-warning" href="../applycourse/<?php echo $schedule['scheduleID'];?>" >Apply Physical Class</a><br><br>
										<a class="btn-sm btn-danger" href="../applyonline/<?php echo $schedule['scheduleID'];?>">Apply Online Class</a>

									</td>
              						<?php
										}
										?>
								</tr>
									<?php   endforeach; ?>
								</tbody>
							</table>
                </div>
            </div>
        </div>
        <script>
            new DataTable('#example');
        </script>
        
    <script src="https://code.jquery.com/jquery-3.7.1.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.9.2/semantic.min.js"></script>
    <script src="https://cdn.datatables.net/2.0.2/js/dataTables.js"></script>
    <script src="https://cdn.datatables.net/2.0.2/js/dataTables.semanticui.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.9.2/semantic.min.js"></script>