<div class="form form-profile aif" style='width:auto'>
        <h2>
            Rewards<!--API - Webservice: <a href="<?= get('siteroot') ?>api/eventsother/" 
            target="_blank"><?= get('siteroot') ?>api/eventsother/</a> (645 x 363 px)
            <span style="float:right;"><a href="<?= get('siteroot') ?>eventsother/" target="_blank">View 
            <i class="fa fa-link"></i></a></span>  -->                            
        </h2>
            <table class="admintable" style="margin:10px;">
                <tr>
                    <th width="270">Image</th>
                    <th width="150">Name</th>
                    <th width="150">Price/Stars</th>
                    <th width="300">Definition</th>
                    <th width="130">Actions</th>
                </tr>
                <?php
                foreach ($rewards as $reward) {
                    echo "<tr>
                    <td style='padding:10px; min-width:150px;'>
                        <img src='/static/client/square-reward-img.png' alt='{$reward['name']}' style='width:250px; height:auto;' />
                    </td>
                    <td style='padding:10px;'>{$reward['name']}</td>
                    <td style='padding:10px; text-align:center;'>{$reward['stars']}</td>
                    <td style='padding:10px; background:none; overflow:hidden; word-wrap: break-word;'>{$reward['definition']}</td>
                    <td style='padding:10px;'><a href='?reward&edit={$reward['id']}'>edit</a> | <a href='?reward&delete={$reward['id']}' class='confirm'>delete</a></td></tr>";
                }
                ?>
            </table>
            <div style="margin:10px;">
                <a href='?reward&add' class='btn btn-blue'>Add New</a>
            </div> 
</div>                        