<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>

<div id="tickets-report" class="hide">
  <!-- Optional filters (like invoice_status etc.) -->
  <div class="row">
    <div class="col-md-4">
      <div class="form-group">
        <label for="ticket_status"><?= _l('ticket_dt_status'); ?></label>
        <select name="ticket_status" class="selectpicker" multiple data-width="100%"
                data-none-selected-text="<?= _l('dropdown_non_selected_tex'); ?>">
          <?php foreach ($ticket_statuses as $st) { ?>
            <option value="<?= e($st['ticketstatusid']); ?>">
              <?= e(ticket_status_translate($st['ticketstatusid'])); ?>
            </option>
          <?php } ?>
        </select>
      </div>
    </div>

    <div class="col-md-4">
      <div class="form-group">
        <label for="ticket_priority"><?= _l('ticket_dt_priority'); ?></label>
        <select name="ticket_priority" class="selectpicker" multiple data-width="100%"
                data-none-selected-text="<?= _l('dropdown_non_selected_tex'); ?>">
          <?php foreach ($ticket_priorities as $p) { ?>
            <option value="<?= e($p['priorityid']); ?>">
              <?= e(ticket_priority_translate($p['priorityid'])); ?>
            </option>
          <?php } ?>
        </select>
      </div>
    </div>
  </div>

  <div class="clearfix"></div>

  <table class="table table-tickets-report">
    <thead>
      <tr>
        <th>No #</th>
        <th>Name</th>
        <th>Department</th>
        <th>Subject</th>
        <th>Priority</th>
        <th>Status</th>
        <th>Service</th>
        <th>Incident Type</th>
        <th>Root Cause</th>
        <th>Incident Resolved</th>
        <th>Date</th>
      </tr>
    </thead>
    <tbody></tbody>

    <!-- Optional footer (only if you return sums in JSON) -->
    <tfoot>
      <tr>
        <td colspan="9"></td>
      </tr>
    </tfoot>
  </table>

</div>
