| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php /** @noinspection PhpUnhandledExceptionInspection */
- namespace App;
- /**
- * @var Location[] $locations
- */
- ?>
- <table class="table table-bordered table-hover mb-3">
- <colgroup>
- <col style="width: 20%"/>
- <col style="width: 30%"/>
- <col style="width: 30%"/>
- <col style="width: 20%"/>
- </colgroup>
- <thead>
- <tr>
- <th><?=htmlspecialchars(__("ID"))?></th>
- <th><?=htmlspecialchars(__("Customer"))?></th>
- <th><?=htmlspecialchars(__("Name"))?></th>
- <th><?=htmlspecialchars(__("Actions"))?></th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach($locations as $location) {
- $customer = $location->getCustomer();
- ?>
- <tr>
- <td class="text-end"><?=$location->id?></td>
- <td>
- <a href="<?=htmlspecialchars($customer->getUrl())?>">
- <?=htmlspecialchars($customer->name)?>
- </a>
- </td>
- <td>
- <?=htmlspecialchars($location->name)?>
- </td>
- <td class="p-1">
- <a class="btn btn-sm btn-primary" href="<?=htmlspecialchars($location->getUrl())?>/update">
- <?=htmlspecialchars(__("Update"))?>
- </a>
- </td>
- </tr>
- <?php
- }
- ?>
- </tbody>
- </table>
|