<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">
				<h4>ALL STAFF LIST REPORT AS AT <?php echo $date ?></h4>
			</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>
					<td class="divider">
						<span class="line">&nbsp;</span>
					</td>
				</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" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="#: activate to sort column ascending" style="width: 0px;">
				#
			</th>
			<th class="sorting border-top" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="Company Code/ Cost Centre: activate to sort column ascending" style="width: 0px;">
				Staff ID
			</th>
			<th class="sorting border-top" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="Company Name: activate to sort column ascending" style="width: 0px;">
				Name
			</th>
			<th class="sorting border-top" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="Salary/ Wage Month: activate to sort column ascending" style="width: 0px;">
				Department
				
			</th>
									
		</thead>	
		<tbody>
			<?php 
				$i = 1;
				if($staff) foreach($staff as $row) {  ?>
					<tr class="link-row">
						<td scope="row"><?php echo $i; ?></td>
						<td><?php echo $row['staff_id']; ?></td>
						<td><?php echo $row['name']; ?></td>
						<td><?php echo $row['department_name']; ?></td>	
						
											
					</tr>
				    <?php
                    $i++;
                } ?>
		</tbody>	
	</table>			
</div>	
									

