<?php defined('BASEPATH') or exit('No direct Access is Allowed'); ?>
<style>

.container-tb {
    height: 500px;
    width: 100%;
    overflow: auto;
    border: 2px solid #999;
}
* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
table {
    border-collapse: collapse;
    table-layout: fixed;
    width: auto;
    min-width: 100%;
}
td, th {
    border: 1px solid #ccc;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
}
thead td, thead th {
    border-top: none;
    border-bottom: none;
}
tfoot td, thead th {
    border-top: none;
    border-bottom: none;
}
td.fth-header, th.fth-header, td.fth-footer, th.fth-footer {
    border-top: none !important;
    border-bottom: none !important;
}
td.fth-header, th.fth-header {
        padding: 3px;
    background-color: #444;
    border-bottom: rgba(0,0,0,0.2);
    color: white;
}
td.fth-footer, th.fth-footer {
    background-color:  #444;
    border-top:  rgba(0,0,0,0.2);
    color: white;
}
.padding_20 {
    padding: 0;
    }
 
</style>
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
<?php /*?>  <section class="content-header">
    <h1>  <small>WorkPackage Master</small> </h1>
    <ol class="breadcrumb">
      <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li>
      <li><a href="#">Manage</a></li>
      <li class="active">WorkPackage Master</li>
    </ol>
  </section><?php */?>
  <!-- Main content -->
  <section class="content">
  
    <div class="col-xs-12">
      <div class="box">
          <div class="box-header">
            <?=form_open('admin/master/Parallel_session_purchased/search');?>
           	<div class="col-md-6">
                <div class= "col-md-2 padding_20">
                	<?=form_input('category_code',set_value('category_code',$data_taskpo['category_code']),['class'=>'form-control input-sm','style'=>'','placeholder'=>'Category Code']);?>    
                </div>
                <div class="col-md-4 padding_20"style="padding: 0px;">
                	<?=form_dropdown('category',$category ,set_value('category',$data_taskpo['category']),['class'=>'form-control input-sm','style'=>'']);?>
                </div>
                <div class="col-md-2  padding_20">
                	<?php $options=array(''=>'Search Type','and'=>'And','or'=>'OR');?>
                	<?=form_dropdown('seach_term',$options,set_value('seach_term','and'),['class'=>'form-control input-sm','style'=>'']);?>
                </div>
                <div class="col-md-2  padding_20">
                	<?php $options=array(''=>'Order By','ASC'=>'Ascending','DESC'=>'Descending','RANDOM'=>'Random');?>
                	<?=form_dropdown('order_by',$options,set_value('order_by','ASC'),['class'=>'form-control input-sm','style'=>'s']);?> 
                </div>
                <div class="col-md-2 padding_20">
                	<?=form_submit('search','search',['class'=>'btn btn-sm  btn-github form-control input-sm']);?> 
                </div>
            </div>
            <?php echo form_close();?>
			<div class="col-md-6">
            	<div class="col-md-2 padding_20"></div>
            	<div class="col-md-2 padding_20"></div>
            	<div class="col-md-4 padding_20">
            		<a href="<?=site_url('admin/master/parallel_session_purchased/create')?>" class="form-control input-sm"><i class="fa fa-fw fa-plus-square"></i> Add Parallel Session</a>
            	</div>
            	<div class="col-md-2 padding_20">
            		<input type="submit" name="All" value="All" class="form-control input-sm">
            	</div>
				<div class="col-md-2 padding_20">
				 <span class="box-title">
            	<form action="<?=site_url('admin/Adminlte/download_excel_page')?>" class="exconvert"  method="post">
                	<input type="hidden" id="expo1" name="expo1"><input type="submit" value="Excel" class="form-control btn-social btn-success input-sm" style="width:100px;"/>
            	</form>
            </span>
				
				</div>
            </div>
			
		</div>
		
            
     <div class="box-body table-responsive no-padding" >
        <div  id="reportsummary">
        <!-- <table id="example2" class="table table-bordered table-hover  table-responsive" style="font-size: 10px;">-->
                
  <div id="tableContainer2" class="container-tb">
        <table>
          <thead>
            <tr>
              <th>#</th>
              <th>Session Id</th>
              <th>Total Seat</th>
              <th>Attendee Seat</th>
              <th>Total Month</th>
              <th>From</th>
              <th>To</th>
              <th>Date Purchased</th>
              <th>Total Cost</th>
              <th>Cost Per Year</th>
              <th>Cost Per Month</th>
              <th>Cost Per Day</th>
              <th>Created</th>
              <th>Updated</th>
              <th>Status</th>
              <th>Action</th>
            </tr>
          </thead>
          <tbody>
			<?php if( count($list) ):$sn=1;
			$count = $this->uri->segment(4);
			foreach($list as $lists ): ?>
            <tr >
              	<td><?php echo  $sn; ?></td>
                <td><?php echo  strtoupper($lists->session_tag_id);?></td>
                <td><?php echo  strtoupper($lists->total_attendee);?></td>
                <td><?php echo  ucwords($lists->attendee_limit);?></td>
                <td><?php echo  ucwords($lists->count_month);?></td>
                <td><?php echo  ucwords(date('d-M-Y',strtotime($lists->from_date)));?></td>
                <td><?php echo  ucwords(date('d-M-Y',strtotime($lists->todate)));?></td>
                <td><?php echo  ucwords(date('d-M-Y',strtotime($lists->date_purchased)));?></td>
                <td><?php echo  ucwords($lists->cost_basic+$lists->cgst+$lists->sgst+$lists->igst);?></td>
   