<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <section class="content-header">
    <h1><i class="fa fa-users"></i> Entry List Report<small></small></h1>
    <ol class="breadcrumb">
      <li><a href="<?php echo base_url(); ?>admin/dashboard"><i class="fas fa-tachometer-alt"></i> <?php echo lang('home'); ?></a></li>
      <li class="active"><i class="fa fa-users"></i> Entry List Report</li>
    </ol>
  </section>

  <!-- Main content -->
  <section class="content">
    
    <div class="row">
      <div class="col-xs-12">
        <div class="box">
          <div class="box-header">
            <div class="row">
              <div class="col-md-12">
                <div class="datatable-top-controls datatable-top-controls-filter">
                  <div class="btn-group">
                    <button type="button" class="btn btn-primary btn-blue btn-flat bulk-action" data-action="download-visitentry-excel">Download Subscribers (EXCEL)</button>
                  </div>
                </div>
                <div class="datatable-top-controls datatable-top-controls-dd">
                  <div class="input-group">
                    <span class="input-group-btn">
                      <button type="button" class="btn btn-default btn-flat"><i class="fa fa-filter"></i> Visit Unit</button>
                    </span>
                    <select class="form-control select2" id="visit_unit" name="visit_unit">
                      <option value=""><?php echo lang('none'); ?></option>
                      <?php foreach ($flats as $key => $value) { ?>
                        <option value="<?php echo esc_output($value['flat_id']); ?>" ><?php echo esc_output($value['block_door'], 'html'); ?></option>
                      <?php } ?>
                    </select>
                  </div>
                </div>
                <!-- <div class="datatable-top-controls datatable-top-controls-dd">
                  <div class="input-group">
                    <span class="input-group-btn">
                      <button type="button" class="btn btn-default btn-flat"><i class="fa fa-filter"></i> To Date/Time</button>
                    </span>
                    <input class="form-control" type="text" name="to_datetime" id="to_datetime" readonly />
                  </div>
                </div>
                <div class="datatable-top-controls datatable-top-controls-dd">
                  <div class="input-group">
                    <span class="input-group-btn">
                      <button type="button" class="btn btn-default btn-flat"><i class="fa fa-filter"></i> Barcode</button>
                    </span>
                    <input class="form-control" type="text" name="barcode_string" id="barcode_string" />
                  </div>
                </div>
                <div class="datatable-top-controls datatable-top-controls-dd">
                  <div class="input-group">
                    <span class="input-group-btn">
                      <button type="button" class="btn btn-default btn-flat"><i class="fa fa-filter"></i> NRIC</button>
                    </span>
                    <input class="form-control" type="text" name="nric" id="nric" />
                  </div>
                </div>
                <div class="datatable-top-controls datatable-top-controls-dd">
                  <div class="input-group">
                    <span class="input-group-btn">
                      <button type="button" class="btn btn-default btn-flat"><i class="fa fa-filter"></i> Mobile</button>
                    </span>
                    <input class="form-control" type="text" name="mobile" id="mobile" />
                  </div>
                </div> -->
                <div class="datatable-top-controls datatable-top-controls-dd">
                <div class="input-group">
                    <span class="input-group-btn">
                      <button type="button" class="btn btn-primary" id="search_bt">Search</button>
                    </span>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <!-- /.box-header -->
          <div class="box-body">
            <table class="table table-bordered table-striped" id="visitorentry_datatable">
              <thead>
              <tr>
                <th><input type="checkbox" class="minimal all-check"></th>
                <th>Visitor</th>
                <th>Visit Unit</th>
                <th>Parking Ticket</th>
                <th>Entry Time</th>
                <th>Exit Time</th>
              </tr>
              </thead>
              <tbody>
              </tbody>
            </table>
          </div>
          <!-- /.box-body -->
        </div>
        <!-- /.box -->
      </div>
      <!-- /.col -->
    </div>
    <!-- /.row -->
  </section>
  <!-- /.content -->
</div>
<!-- /.content-wrapper -->

<!-- Right Modal -->
<div class="modal right fade modal-right" id="modal-right" data-backdrop="static" data-keyboard="false">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title" id="myModalLabel2">Roles</h4>
      </div>
      <div class="modal-body">
      </div>
    </div><!-- modal-content -->
  </div><!-- modal-dialog -->
</div><!-- modal -->
<form id="visitentry-form" method="POST" action="<?php echo base_url(); ?>admin/visitentry/excel" target='_blank'></form>

<?php include(VIEW_ROOT.'/admin/layout/footer.php'); ?>

<!-- page script -->
<script src="<?php echo base_url(); ?>assets/admin/js/cf/visitor.js"></script>

</body>
</html>