<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>/public/assets/css/sky-forms.css">
<script src='https://www.google.com/recaptcha/api.js'></script>

					<div class="container">
						<div class="row profile-body">
							<div class="col-md-8">
					<form action="../applyonline" method="post" id="sky-form1" class="sky-form">
						<header>Registration form for <?php  echo $schedule->courseName;?></header>

						<fieldset>
							<div class="row">
								<section class="col col-6">
									<input type="hidden" name="schedule" value="<?php echo $schedule->scheduleID;   ?>"  />
									<input type="hidden" name="course" value="<?php echo $schedule->courseID;   ?>"  />
									<input type="hidden" name="feekshs" value="<?php echo $schedule->feeKshs;   ?>"  />
									<input type="hidden" name="feeusd" value="<?php echo $schedule->feeUsd;   ?>"  />
									<!--input type="hidden" name="coursesName" value="<?php  echo $schedule->courseName;?> ">-->
									<input type="hidden" name="course_id" value="<?php echo $schedule->courseID;?> ">
									<input type="hidden" name="classType" value="Online" />
									<input type="hidden" name="usertype" value="2"  />
									<label class="input state-success">
										<i class="icon-prepend fa fa-user"></i>
										<input type="text" name="fname" placeholder="First Name*" required>
									</label>
								</section>
								<section class="col col-6">
									<label class="input state-success">
										<i class="icon-prepend fa fa-user"></i>
										<input type="text" name="sname" placeholder="Second name*" class="has-success" required>
									</label>
								</section>
							</div>
							<div class="row">
								<section class="col col-6">
									<label class="input state-success">
										<i class="icon-prepend fa fa-user"></i>
										<input type="text" name="tname" placeholder="Surname *" required>
									</label>
								</section>
								<section class="col col-6">
									<label class="input state-success">
										<i class="icon-prepend fa fa-envelope-o"></i>
										<input type="email" name="email" id="email" placeholder="Email Address*" required>
									</label>
								</section>
							</div>

							<div class="row">
								<section class="col col-6">
									<label class="input state-success">
										<i class="icon-prepend fa fa-phone"></i>
										<input type="text" name="phone" id="phone" placeholder="Phone No.*" required>
									</label>
								</section>

								<section class="col col-6">
									<label class="select state-success">
										<select name="gender select2" required>
											<option value="0" selected="" disabled="">- Gender -</option>
											<option value="Male">Male</option>
											<option value="Female">Female</option>
										</select>
										<i></i>
									</label>
								</section>
							</div>

							<div class="row">

								<section class="col col-6">
									<label class="select state-success">
										<select name="nationality" id="demo-aclevel" required>
											<option value="">- Nationlity -</option>
											<?php foreach($countries as $count) : ?>
											<option value="<?php echo $count['countryName'];   ?>"><?php echo $count['countryName'];   ?></option>
										   <?php endforeach; ?>
										</select>
										<i></i>
									</label>
								</section>
								<section class="col col-6">
									<label class="input state-success">
										<i class="icon-prepend fa fa-briefcase"></i>
										<input type="text" name="organisation" id="organisation" placeholder="Organisation">
									</label>
								</section>
							</div>
							<div class="row">
								<section class="col col-6">
									<label class="select state-success">
									<select name="academiclevel" id="demo-aclevel" required>
										<option value="">- Academic Level -</option>
										<option value="High School">High School</option>
										<option value="Degree">Degree</option>
										<option value="Master">Master</option>
										<option value="Doctorate">Doctorate</option>
										<option value="Professor">Professor</option>
									</select>
									<i></i>
								</label>
								</section>
							</div>

							<div class="col-md-8">
								<h3>Employment/Organization Details</h3>
							</div>
							<div class="row">
							<section class="col col-sm-12">
								<label class="input state-success">
									<i class="icon-prepend fa fa-tag"></i>
									<input type="text" name="orgname" id="orgname" placeholder="Organisation Name">
								</label>
							</section>
						</div>


							<div class="row">

								<section class="col col-6">
									<label class="input state-success">
										<i class="icon-prepend fa fa-phone"></i>
										<input type="text" name="orgphone" id="orgphone" placeholder="Organisation Phone No.">
									</label>
								</section>

								<section class="col col-6">
									<label class="input state-success">
										<i class="icon-prepend fa fa-envelope-o"></i>
										<input type="text" name="orgemail" id="orgemail" placeholder="Organisation Email">
									</label>
								</section>
							</div>
							<div class="row">

							<section class="col-12">
								<label class="input state-success">
									<textarea rows="5" cols="95" class="" name="comment" id="demo-message" placeholder="Enter your message here..."></textarea>
								</label>
							</section>
						</div>
						</fieldset>

						<footer>
							<button type="submit" class="button">Register</button>
						</footer>

						<div class="message">
							<i class="rounded-x fa fa-check"></i>
							<p>Your message was successfully sent!</p>
						</div>
					</form>
				</div>



				<aside class="col-lg-4 widget widget-categories featured-icon-box icon-align-top-content style5">
                    <h3 class="widget-title">Course Description</h3>
                    <ul>
                        <!-- <li><a>Course Name:</a><br><span><?php echo ucwords($schedule->courseName); ?></span></li> -->
                        <li><a >Course Duration:</a><span><?php echo $schedule->duration.' '.$schedule->typeName;      ?></span></li>
                        <li><a >Course Fee:</a><span><?php echo 'KShs '. $schedule->feeKshs.', USD '.$schedule->feeUsd;?></span></li>
                        <li><a >Training Center:</a><span><?php echo $schedule->centerName;   ?></span></li>
                        <?php

				$startDate=explode('-',$schedule->startDate);
				$startDate=$startDate[2].'/'.$startDate[1].'/'.$startDate[0];

				$endDate=explode('-',$schedule->endDate);
				$endDate=$endDate[2].'/'.$endDate[1].'/'.$endDate[0];
				 ?>
                        <li><a >Start Date:</a><span><?php echo $startDate;   ?></span></li>
                        <li><a >End Date:</a><span><?php echo $endDate;   ?></span></li>
                    </ul>
                </aside>
			</div>
		</div>
