<p>Блюда в категории:</p>
<table cellpadding="0" cellspacing="0" class="my_admin_table" width="600">
    <tr>
        <td colspan="3" style="line-height: 23px;">
            Название
        </td>
    </tr>
    <?php
    foreach ($children as $food)
    {
        ?>
        <tr class="hovered elem_<?php echo $food['id'] ?>">
            <td>
                <img class="position_img" src="/u/i/<?php echo str_replace(".", "-M.", $food['photo']); ?>"
                     alt="">
                <a href="<?php echo url_for('@restauran_business_lunch_edit?id=' . $food['id']) ?>"><?php echo $food['title'] ?></a>
            </td>

            <?php if ($food['menu_category_id'] != 1)
            {
                ?>
                <td style="text-align: center">
                    Позиция: <input style="width: 60px;" type="number"
                                    data-cat-id="<?php echo $food['menu_category_id'] ?>"
                                    data-id="<?php echo $food['id'] ?>" data-table="RestauranBusinessLunch" class="change_pos"
                                    value="<?php echo $food['sort'] ?>">
                </td>
                <?php
            }
            ?>
            <td class="tcenter" width="80">
                <a class="my_edit" href="<?php echo url_for('@restauran_business_lunch_edit?id=' . $food['id']) ?>"></a>
                <a onclick="if (confirm('Вы уверены что хотите удалить объект?')) { f.createHiddenFormAndSubmit($(this).attr('href'), {'sf_method': 'delete', '_csrf_token': 'd7fd71d9d52932863f7b44eec40f7dda'}); };return false;" class="my_delete" href="<?php echo url_for('@restauran_business_lunch_delete?id=' . $food['id']) ?>"></a>
            </td>
        </tr>
        <?php
    }
    ?>
</table>