<?php if (!empty($menus)): ?>
    <div class="col-lg-offset-1 col-lg-5 col-md-5 col-sm-5 col-xs-5 text-left">
        <?php if (!empty($firstHalfMenus)): ?>
            <?php foreach ($firstHalfMenus as $menu): ?>
                <div class="checkbox">
                    <label style="color: #000;">
                        <?php if (empty($selections[$menu->id])): ?>
                            <input type="checkbox" class="menu-options" name="menus[][<?php echo $category ?>]" value="<?php echo $menu->id ?>">
                            <span class="title"><?php echo $menu->title; ?></span>
                            <span class="price"><strong>[<?php echo $this->config->item('currency_symbol') ?>
                                    <span class="price-amount"><?php $menu->out_price > 0 ? print $menu->out_price : print $menu->base_price ?></span>]</strong>
                            </span>
                        <?php else: ?>
                            <input type="checkbox" class="menu-options" name="menus[][<?php echo $category ?>]" value="<?php echo $menu->id ?>">  <span class="title"><?php echo $menu->title; ?></span>
                        <?php endif; ?>
                    </label>
                    <?php if (!empty($selections[$menu->id])): ?>
                        <?php foreach ($selections[$menu->id] as $selection): ?>
                            <div class="checkbox" style="margin-left: 20px;">
                                <label style="color: #000;">
                                    <input type="checkbox" name='selection[][<?php echo $category ?>][<?php echo $menu->id ?>]' value="<?php echo $selection->id ?>">
                                    <span class="title"><?php echo $selection->title; ?></span>
                                    <span class="price"><strong>[<?php echo $this->config->item('currency_symbol') ?>
                                            <span class="price-amount"><?php $menu->out_price > 0 ? print $selection->out_price : print $selection->base_price ?></span>]</strong>
                                    </span>
                                </label>
                            </div>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </div>
            <?php endforeach; ?>
        <?php endif; ?>
    </div>
    <div class="col-lg-offset-1 col-lg-5 col-md-5 col-sm-5 col-xs-5 text-left">
        <?php if (!empty($secondHalfMenus)): ?>
            <?php foreach ($secondHalfMenus as $menu): ?>
                <div class="checkbox">
                    <label style="color: #000;">
                        <?php if (empty($selections[$menu->id])): ?>
                            <input type="checkbox" class="menu-options" name="menus[][<?php echo $category ?>]" value="<?php echo $menu->id ?>">
                            <span class="title"><?php echo $menu->title; ?></span>
                            <span class="price"><strong>[<?php echo $this->config->item('currency_symbol') ?>
                                    <span class="price-amount"><?php $menu->out_price > 0 ? print $menu->out_price : print $menu->base_price ?></span>]</strong>
                            </span>
                        <?php else: ?>
                            <input type="checkbox" class="menu-options" name="menus[][<?php echo $category ?>]" value="<?php echo $menu->id ?>"><span class="title"><?php echo $menu->title; ?></span>
                        <?php endif; ?>
                    </label>
                    <?php if (!empty($selections[$menu->id])): ?>
                        <?php foreach ($selections[$menu->id] as $selection): ?>
                            <div class="checkbox" style="margin-left: 20px;">
                                <label style="color: #000;">
                                    <input type="checkbox" name='selection[][<?php echo $category ?>][<?php echo $menu ?>]' value="<?php echo $selection->id ?>">
                                    <span class="title"><?php echo $selection->title; ?></span>
                                    <span class="price"><strong>[<?php echo $this->config->item('currency_symbol') ?>
                                            <span class="price-amount"><?php $menu->out_price > 0 ? print $selection->out_price : print $selection->base_price ?></span>]</strong>
                                    </span>
                                </label>
                            </div>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </div>
            <?php endforeach; ?>
        <?php endif; ?>
    </div>
<?php else: ?>
    <p>No menus found to create a set for meal deal</p>
<?php endif; ?>



