<header>
	<div class="row">
		<div class="col-12">
			<div class="t-corp pull-left">
				<div class="t-corp-logo">
					<img src="<?php echo base_url().'assets/images/logo/salihin-logo.png'; ?>" alt="company logo" />
				</div>
				<div class="t-corp-name"><b>SPS</b> | HR SYSTEM</div>
			</div>
			<div class="report-title pull-right" style="padding-top: 30px;">
				<h5><?php echo (isset($title) ? $title : 'Report'); ?></h5>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-12">
			<table class="company">
				<tr>
					<td class="divider">
						<span class="line">&nbsp;</span>
					</td>
					<td class="details">
						<span><b>SALIHIN (AF 1426)</b></span>
						<span>555, Jalan Samudra Utara 1, Taman Samudra, Batu Caves,</span>
						<span>68100, Batu Caves, Selangor</span>
						<span>Phone: 03-6185 9970 &nbsp;&nbsp; Fax: 03-6185 9970</span>
						<span>Website: salihin.com.my</span>
					</td>
					<?php if(!empty($ID)) { ?>
						<td class="divider">
							<span class="line">&nbsp;</span>
							
						</td>
					<?php } else { ?>
						<td class="divider">
							<span class="line">&nbsp;</span>
							<table>
								<tr>
									<td><span><b>YEAR OF RESIGNATION</b></span></td>
									<td><span><b style="padding-left: 2rem;">:</b></span></td>
									<td><span><b style="padding-left: 1rem;"><?php echo (!empty($this->session->userdata('alumni_filter_year')))?($this->session->userdata('alumni_filter_year')):'ALL'; ?></b></span></td>
								</tr>
							</table>
						</td>
					<?php } ?>
				</tr>
			</table>
		</div>
	</div>
</header>

<div class="col-12 table-responsive " style="margin-top:2rem">		
	<table class="table table-bordered" width="100%" border="1">
		<thead>	
			<th class="sorting border-top text-center" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="#: activate to sort column ascending" style="width: 0px;">No.</th>
			<th class="sorting border-top text-center" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="#: activate to sort column ascending" style="width: 0px;">Profile Picture</th>
			<th class="sorting border-top text-center" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="#: activate to sort column ascending" style="width: 0px;">Alumni Name</th>
			<th class="sorting border-top text-center" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="#: activate to sort column ascending" style="width: 0px;">Address</th>
			<th class="sorting border-top text-center" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="#: activate to sort column ascending" style="width: 0px;">Phone No.</th>
			<th class="sorting border-top text-center" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="#: activate to sort column ascending" style="width: 0px;">Email</th>
			<th class="sorting border-top text-center" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="#: activate to sort column ascending" style="width: 0px;">Date of Birth</th>
			<th class="sorting border-top text-center" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="#: activate to sort column ascending" style="width: 0px;">Years of Resignation</th>
			<th class="sorting border-top text-center" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="#: activate to sort column ascending" style="width: 0px;">Current Employer</th>					
		</thead>	

		<tbody>
			<?php $i=0; if($alumni_list){ foreach ($alumni_list as $value) { //debug($value);?>
				<tr>
					<td><?php echo ++$i; ?></td>
					<td class="text-center"><div class="border border-secondary img-responsive rounded-circle" style="background-image: url(<?php echo base_url(($value['file_name'])?($value['file_location'].$value['file_name']):((strpos(strtoupper($value['alumni_name']), "BINTI"))?'assets/images/user-female.png':'assets/images/user.png')); ?>); background-position:50% 50%; background-size: cover; width: 5rem; height: 6rem;"></div>
					</td>
					<td><?php echo $value['alumni_name']; ?></td>
					<td><?php echo $value['address']; ?></td>
					<td><?php echo $value['contact_no']; ?></td>
					<td><?php echo $value['email']; ?></td>
					<td><?php if(!empty($value['birth_date']) && ($value['birth_date'] != '0000-00-00')){ echo date("d M Y", strtotime($value['birth_date'])); } else { echo ''; } ?></td>
					<td><?php echo $value['year_resigned']; ?></td>
					<td><?php if($value['curr_employer'] != '0'){ echo $value['curr_employer']; } else { echo ''; } ?></td>
				</tr>
			<?php } } ?>
		</tbody>		
	</table>				
</div>	
									

