
			
		<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>
			</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>
								<span><b>DATE &nbsp;&nbsp;&nbsp;&nbsp;: <?php echo $this->session->userdata('filter_start_date').$this->session->userdata('filter_end_date'); ?></b></span>
								
								<?php if ($this->session->userdata('filter_type')): ?>
									<span><b>TYPE &nbsp;&nbsp;&nbsp;&nbsp;: <?php echo $this->session->userdata('filter_type'); ?></b></span>
								<?php endif ?>

								<?php if ($this->session->userdata('filter_client')): ?>
									<span><b>CLIENT : <?php echo $this->session->userdata('filter_client'); ?></b></span>
								<?php endif ?>
							</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;">
						Date
					</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;">
						Type
					</th>
					<th class="sorting border-top" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="Employee Total Upload: activate to sort column ascending" style="width: 0px;">
						Client / Destination
					</th>
					<th class="sorting border-top" tabindex="0" aria-controls="table_contact" rowspan="1" colspan="1" aria-label="Employee Total Upload: activate to sort column ascending" style="width: 0px;">
						Status
					</th>						
				</thead>	

				<tbody>
					<?php if ($this->session->userdata('groupsList') && $this->session->userdata('groupsList') != 'no result'): ?>
					<?php foreach ($this->session->userdata('groupsList') as $key => $group): ?>
						
					<tr>
						<td><?php echo $key+1;?></td>
						<td><?php echo date('d-m-Y',strtotime($group->date));?></td>
						<td><?php if($group->movementType == NULL){
                                echo 'Others';
                            }else{
                                echo $group->movementType;
                            }?>
                        </td>
						<td>
							<?php if ($group->customerid != -1): ?>
								<?php echo ($group->customerName)?$group->customerName.'<br/>'.$group->destination:'Others'.'<br/>'.$group->destination; ?>
							<?php endif ?>

							<?php if ($group->customerid == -1): ?>
								<?php echo ($group->customerName)?$group->customerName.'<br/>'.$group->destination:'Others'.'<br/>'.$group->destination; ?>
							<?php endif ?>
						</td>
						<td>
							<?php if  ($group->status == 0): ?>
								Pending
							<?php endif ?>
							<?php if  ($group->status == 1): ?>
								Approved
							<?php endif ?>
							<?php if  ($group->status == 2): ?>
								Rejected
							<?php endif ?>
						</td>																							
					</tr>

					<?php endforeach ?>
					<?php endif ?>

				</tbody>		
			</table>	
							
		</div>	
									

