| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <table class="table table-sm table-hover">
- <thead>
- <tr>
- <th class="text-right pr-3">ID</th>
- <th>Name / Address</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach($locations as $location) {
- ?>
- <tr>
- <td class="text-right pr-3">
- <?=$location->id?>
- </td>
- <td>
- <a href="/account/locations/<?=$location->id?>"><?=htmlspecialchars($location->name)?></a><br />
- <small><?=htmlspecialchars($location->getDisplayAddress(["address_1", "address_2", "city", "postal_code"]))?></small>
- </td>
- <td class="text-right align-middle">
- <a class="btn btn-outline-primary" href="/account/locations/<?=$location->id?>/edit">Edit</a>
- </td>
- </tr>
- <?php
- }
- ?>
- </tbody>
- </table>
- <?php
- if(empty($locations)) {
- ?>
- <div class="alert alert-info">
- No locations to display.
- </div>
- <?php
- }
- ?>
|