<div class="container">
				<?php if($detail->unik!=NULL){?>
			<div class="panel  panel-success ">
		<div class="panel-heading"></div>
		<div class="panel-body">	
				<div class="row">
		    <div class="col-xs-12 col-md-12">
		        <h3 class="text-highlight">
					<i class="ace-icon glyphicon glyphicon-check"></i> Letter of Acceptance Anda valid
		        </h3>
		        <p class="text-highlight">
		        	<b><?php echo $detail->no_sertifikat;?></b>
		        </p>
		        <h3 class="text-highlight">
		        	<i class="ace-icon glyphicon  glyphicon-user"></i> Participant Profile
		        </h3>
		        <p>
					<b><h4><?php echo $detail->nama;?></h4></b> <p>
					<h4><?php echo $detail->unit_kerja;?></h4> <p>
					<h4><?php echo $detail->nip;?></h4><p>
									</p>

		        <h3 class="text-highlight">
		        	<i class="ace-icon glyphicon  glyphicon-book"></i> Program
		        </h3>
		        <p>
		            					<b><?php echo $detail->nama_acara;?></b> <br>
										<b><?php if($detail->judul!=NULL){ echo 'JUDUL ARTIKEL "'.$detail->judul.'"';}?></b> <br>
										<b><?php if($detail->kategori!=NULL){echo 'EDISI '.$detail->kategori;}?></b> <br>
					<b></b> <br><?php echo $detail->metode;?><br>
					<?php echo tgl_indo($detail->tgl_acara);?> - <?php echo tgl_indo($detail->tgl_acara_akhir);?> <br>
				</p>
		        
		        		        <h3 class="text-highlight">
		        	<i class="ace-icon glyphicon  glyphicon-list-alt"></i> Detail Program
		        </h3>
				<table class="table table-bordered table-striped" border="1">
					<thead>
						<tr>
							<th width="10%" class="col-highlight"><p align="center">Session</p></th>
							<th class="col-highlight"  width="80%"align="center"><p align="center">Topics</p></th>
							<th class="col-highlight" width="10%"><p align="center">Hours</p></th>
						</tr>	
					</thead>
					<tbody>
							<?php $result =$this->db->query("SELECT  materi,narasumber,jpl FROM tbl_program_acara where id_acara='$detail->id_acara' ");
							$no=1;
							foreach ($result->result_array() as $id){?>
							<tr>
							<td valign="middle">
								<p align="center"><?php echo $no;?></p>
							</td>
							<td valign="bottom">
								<p align="left"> <?php echo $id['materi'];?></p>
								<p align="left"> <b><?php echo $id['narasumber'];?></b></p>
							</td>
							<td valign="middle">
								<p align="center"><?php echo $id['jpl'];?></p>
							</td>
							</tr>
							<?php $no ++;}?>
							
						<tr>
							<td colspan="2" class="col-highlight">
								<p align="center"><strong>Total Hours</strong></p>
							</td>
							<td class="col-highlight">
								<p align="center"><strong>
								<?php $result =$this->db->query("SELECT  SUM(jpl) AS tot FROM tbl_program_acara where id_acara='$detail->id_acara' ");
							$no=1;
							foreach ($result->result_array() as $x){?>

							<?php echo $x['tot'];?>
							<?php } ?>
						</strong></p>
							</td>
						</tr>	
							
					</tbody>
				</table>		        <hr>
		        <p>
					
Anda dapat menampilkan dan mengunduh Letter of Acceptance dengan menekan tombol " CETAK LoA" 
		        </p>
				<div class="row">
					<div class="col-md-3">
						<a class="btn btn-success btn-block" href="<?php echo base_url();?>verify/v/<?php echo $detail->unik;?>/<?php echo $detail->id_acara;?>" target="_blank"  ><i class="ace-icon glyphicon  glyphicon-download"></i> CETAK LoA </a>
					</div>
					
					
				</div>

		   	</div>
		</div>
			</div>
	</div>
				<?php }else{?>
				
			<div class="panel  panel-danger ">
				<div class="panel-heading"></div>
				<div class="panel-body">
				<div class="row">
				<div class="col-md-12 text-center">
		            <h2 class="text-highlight">Verifikasi tidak valid !</h2>
		            <p>Letter of Acceptance anda tidak ada dalam database kami</p>					
				</div>
				</div>
				<div class="row">
					<div class="col-md-12">
						<br>
						<h3 class="text-highlight text-center">
							<i class="ace-icon glyphicon  glyphicon-remove"></i><br>
							We cannot find your Letter of Acceptance data. <br>
							Unfortunately, your Letter of Acceptance is not valid.
						</h3>
						<br>
					</div>
				</div>
						</div>
			</div>	
	<?php }?>
</div>
