<style>
fieldset.scheduler-border {
	border: 1px groove #f2f2f2 !important;
	padding: 0 1.4em 1.4em 1.4em !important;
	margin: 0 0 1.5em 0 !important;
	-webkit-box-shadow:  0px 0px 0px 0px #000;
	box-shadow:  0px 0px 0px 0px #000;
}
legend.scheduler-border {
	width:inherit; 
	padding:0 10px; 
	border-bottom:none;
	margin-bottom:15px;
}
legend{
	font-size: 16px;
	font-weight:bold;
	background-color:#d9d9d9;
	border: 1px groove #404040;
	margin-bottom:0px;
	border:none;
}
</style>
<div class="content-wrapper"> 
  <!-- Content Header (Page header) -->
  <section class="content-header">
    <h1> Channellimo <small>Preview</small> </h1>
    <ol class="breadcrumb">
      <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
      <li><a href="#">Forms</a></li>
      <li class="active">CLSERVICE</li>
    </ol>
  </section>
  <section class="content">
    <div class="box">
      <div class="box-header">
        <h3><a href="<?php echo site_url('admin/report/add');?>">Add Service</a></h3>
      </div>
      <!-- /.box-header -->
      <div class="box-body">
        <div class="col-lg-12">
        <fieldset class="scheduler-border">
          <legend class="scheduler-border">Search Service Date :</legend>
          <form action="<?php echo site_url('admin/report/filterDate');?>" method="get"  style="margin-bottom:10px;" class="form-inline">
            <div class="form-group">
              <label>From: </label>
              <input type="text" name="date1" id="date1" placeholder="mm/dd/yyyy" class="form-control" value="<?php echo $this->session->userdata('fromDate');?>" autocomplete="off" spellcheck="false" required>
            </div>
            <div class="form-group"> &nbsp;
              <label>To: </label>
              <input type="text" name="date2" id="date2" placeholder="mm/dd/yyyy" class="form-control" value="<?php echo $this->session->userdata('toDate');?>" autocomplete="off" spellcheck="false" required>
            </div>
            <div class="form-group"> &nbsp;
              <label>Company Name: </label>
              <input type="text" name="name" id="name" placeholder="Company Name" class="form-control" value="<?php echo $this->session->userdata('name');?>">
            </div>
            <div class="form-group">
              <button type="submit"  name="Search" id="Search" class="btn btn-primary">Search</button>
            </div>
          </form>
        </fieldset>
        </div>
        <span id="mytable">
        <table id="tech-companies-1" class="table table-small-font table-bordered table-striped">
          <thead>
            <tr>
              <th>DateService</th>
              <th></th>
              <th></th>
              <th>Company Name</th>
              <th>Guest Name</th>
              <th>Driver Name</th>
              <th>CarType</th>
              <th>Service Details</th>
              <th>SellerName</th>
              <th>Vocher Num</th>
              <th>Invoice Num</th>
              <th>Remark</th>
              <th>CreatedDate</th>
              <th>CreatedBy</th>
            </tr>
          </thead>
          <tbody align="center">
            <?php 
			$i=1;
			foreach($report as $v)
			{					
				if($v['Status'] == 0){
					$font = 'style="background-color:#CCCCCC;"';	
				}else{
					$font = '';	
				}
			?>
            <tr <?php echo $font;?>>
              <td data-order="<?php echo $i;?>"><?php echo date("d-M-Y", strtotime($v['Date']));?></td>
              <?php if($v['Status'] == 1){?>
              <td><a href="<?php echo site_url('admin/report/edit/'.$v['id']);?>"><i class="fa fa-edit"></i>Edit</a></td>
              <td><a href="<?php echo site_url('admin/report/delete/'.$v['id']);?>" style="color:red;" class="confirmation"><i class="fa fa-remove"></i>Delete</a></td>
              <?php 
			  }else{
				echo'<td></td>';
				echo'<td></td>';
			  }
			  ?>
			  <?php 
			    //$user_data =  array(2,3,5,9,11);
				//if(in_array($userId,$user_data)){	
			  ?>
              <td><a href="<?php echo site_url('admin/report/detail/'.$v['id']);?>" target="_blank"><?php echo $v['Company'];?></a></td>
              <?php 
			  //}else{
			   // echo'<td>'.$v['Company'].'</td>';	
			  //}
			  ?>
			  <td><?php echo $v['GuestName'];?></td>
              <td ><?php echo $v['DriverName'];?></td>
              <td><?php echo $v['CarType'];?></td>
              <td><?php echo $v['ServiceDetail'];?></td>
              <td><?php echo $v['Seller'];?></td>
              <td><?php echo $v['VocherNumber'];?></td>
              <td><?php echo $v['InvoiceNumber'];?></td>
              <td style="font-size:13px;"><?php echo $v['Remark'];?></td>
              <td><?php echo date("Y-M-d H:i:s", strtotime($v['CreatedDate']));?></td>
              <td style="font-size:13px;"><?php echo $v['fullname'];?></td>
            </tr>
            <?php $i++;}?>
          </tbody>
        </table>
        </span> </div>
      <!-- /.box-body --> 
    </div>
    <!-- /.box --> 
  </section>
</div>

