<th>Type</th>
          <th>Name</th>
          <th>Email</th>
          <th>Date Scanned</th>
          <th>Scanned by</th>
          <th>From IP</th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        <?php 
    if ($tickets) {
        ?>
        <?php 
        foreach ($tickets as $result) {
            $result = $ticket->parseTicket($result);
            ?>
          <tr <?php 
            echo $result->scanned ? "class='success'" : '';
            ?>
>
            <td><?php 
            echo $result->ticketLink;
            ?>
</td>
            <td><?php 
            echo $result->ticket;
            ?>
</td>
            <td><?php 
            echo $result->firstname . ' ' . $result->lastname;
    <thead>
      <tr>
        <th>Barcode</th>
        <th>Name</th>
        <th>When</th>
        <th>Who</th>
        <th>IP</th>
      </tr>
    </thead>
    <tbody>
      <?php 
foreach ($logs as $log) {
    ?>
        <tr>
          <?php 
    $log = $ticket->parseTicket($log);
    ?>
          <td><?php 
    echo $log->ticketLink;
    ?>
</td>
          <td><?php 
    echo $log->firstname . ' ' . $log->lastname;
    ?>
</td>
          <td><?php 
    echo $log->scanned_at;
    ?>
</td>
          <td><?php 
    echo $log->scanned_by;