	<?php 
		if ($networkjoins[0]['User']['profile_id']==$loggedUser['profile_id']){
	?>
	<div class="blocktitle" style="width: 30%">Add Teacher</div>
	<?php echo $this->element('networkcourselistmenu');?>
	<?php }else {?>
		<div class="blocktitle">Add Teacher</div>
	<?php }?> 
<div class="icspan12">
	<table class="table" style="font-size:14px;margin-top: 5px">
		<tbody>
			<tr>
				<td>Course Short Name</td>
				<td><?= $courses['Course']['courseShortName'];?></td>
			</tr>
			<tr>
				<td>Course Name</td>
				<td><?= $courses['Course']['courseName']?></td>
			</tr>
			<tr>
				<td>Course Key</td>
				<td><?= $courses['Course']['courseKey']?></td>
			</tr>
			<tr>
				<td>Teacher Key</td>
				<td><?= $courses['Course']['teacherKey']?></td>
			</tr>
			<tr>
				<td>Created Date</td>
				<td><?= $courses['Course']['created']?></td>
			</tr>
			<tr>
				<td>Start Date</td>
				<td><?= $courses['Course']['startDate']?></td>
			</tr>
			<tr>
				<td>End Date</td>
				<td><?= $courses['Course']['endDate']?></td>
			</tr>
			<tr>
				<td>Teacher(s)</td>
				<td> 
					<?php 
					if (count($teachers)>0)  
						 foreach ($teachers as $key => $teacher):
						 	$teacherName = $teacher['Profile']['fname'].' '.$teacher['Profile']['lname'];
						 	$rand=rand(1000,9999);
						 	echo $this->Html->link($teacherName,array('controller'=>'profiles','action'=>'about',base64_encode($teacher['Profile']['id']),$rand.$teacher['Profile']['id'],base64_encode($teacherName)));
							if (count($teachers)-1 > $key)
									echo ', ';
						 endforeach;
					else
						echo "No Teacher's in there course";
					?>
				</td>
			</tr>
		</tbody>
	</table>
 	<div style="clear: both;"></div>
	<strong>Please share below information with the teacher for this course. </strong>
	<div style="clear: both;"></div>
	<button class="btn btn-mini" style="margin:10px 0px">Send Email</button>
	<div style="clear: both;"></div>
	<p class="step_p"><strong>Step - 1:</strong> Go to <a href="https://foqaslearn.com/" target="_blank">www.foqaslearn.com</a>, the create of sign-in to your account.
	</p>
	<p class="step_p"><strong>Step - 2:</strong> On the top search bar, type: "<?= $courses['Course']['teacherKey']?>" and then click on search button.
	</p>
	<p class="step_p">
		<strong>Step - 3: </strong> Click on "Join as Teacher". 
	</p>
</div>

<style type="text/css">	
	.step_p{
		margin: 10px 0px;
	}
</style>