| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php include 'admin_header.php'; ?>
- <div class="content-wrapper">
- <section class="content-header">
- <h1>
- User Stories
- <small>Visitors activity log</small>
- </h1>
- </section>
- <section class="content">
- <div class="box box-info">
- <div class="box-header with-border">
- <h3 class="box-title">User Stories</h3>
- </div>
- <div class="box-body" style="overflow-x: auto;">
- <table id="userstory-table" class="table table-bordered table-hover table-striped">
- <thead>
- <tr>
- <th>UUID</th>
- <th>Hotel</th>
- <th>Events</th>
- <th>First event</th>
- <th>Last event</th>
- <th>IP</th>
- <th> </th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($stories as $story) : ?>
- <tr>
- <td>
- <code><?=htmlspecialchars($story->uuid)?></code>
- <?php if (!empty($story->new_uuids)) : ?>
- <br>
- <small style="color: #f39c12;"><i class="fa fa-exchange"></i> UUID changed:</small>
- <?php foreach ($story->new_uuids as $new_uuid) : ?>
- <br><code style="color: #f39c12; font-size: 11px;"><?=htmlspecialchars($new_uuid)?></code>
- <?php endforeach; ?>
- <?php endif; ?>
- </td>
- <td><?=htmlspecialchars($story->hotel ?: '-')?></td>
- <td><span class="badge bg-blue"><?=$story->event_count?></span></td>
- <td><?=$story->first_event?></td>
- <td><?=$story->last_event?></td>
- <td><?=htmlspecialchars($story->ip_address ?: '-')?></td>
- <td>
- <a href="/userstory/timeline/?uuid=<?=urlencode($story->uuid)?>" class="btn btn-sm btn-primary">
- <i class="fa fa-clock-o"></i> Timeline
- </a>
- </td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- </table>
- </div>
- </div>
- </section>
- </div>
- <?php include 'admin_footer.php'; ?>
|