<?php
$view->extend('MarketZodacoBundle::base.html.php');

$view['slots']->set('title', $view['translator']->trans("Help and Support") . " | " . $view['translator']->trans("Zodaco Market"));
?>
<div class="col-sm-12 col-lg-12 main" id="mainContents">
    <div class="container">
        <div class="row">
            <div class="col-lg-3 no-padding">
                <div class="col-lg-12">
                    <?php
                    if ($listFooter) {
                        foreach ($listFooter as $value) {
                            if ($list[$value->getId()] != 0) {
                                ?>
                                <ul class="profile-menu" style="margin-bottom: 20px;">
                                    <li class="category"><?php echo $view['translator']->trans($value->getTitle()); ?></li>
                                    <?php
                                    foreach ($list[$value->getId()] as $value1) {
                                        ?>
                                        <li><a title="" href="<?php echo $view['router']->generate('info_help', array('id' => $value1->getId(), 'title' => Market\ZodacoBundle\System::_reString($value1->getTitle())), true); ?>" <?php if ($category == $value1->getId()) { ?>class="active"<?php } ?>><?php echo $view['translator']->trans($value1->getShortTitle()); ?></a></li>
                                        <?php
                                    }
                                    ?>
                                </ul>
                                <?php
                            }
                        }
                    }
                    ?>
                    <ul class="profile-menu" style="margin-bottom: 20px;">
                        <li class="category"><?php echo $view['translator']->trans("Support"); ?></li>
                        <li><a title="" href="<?php echo $view['router']->generate('support', array(), true); ?>" <?php if ($category == 1000) { ?>class="active"<?php } ?>><?php echo $view['translator']->trans("Contact Us"); ?></a></li>
                    </ul>
                </div>
            </div>
            <div class="col-lg-9 no-padding">
                <?php
                if ($listInfo) {
                    foreach ($listInfo as $value1) {
                        ?>
                        <div class="col-lg-12">
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <?php echo $view['translator']->trans($value1->getTitle()); ?>
                                </div>
                                <div class="panel-body">
                                    <?php
                                    if ($view['request']->getLocale() == "vi") {
                                        echo $view['translator']->trans($value1->getVnDetails());
                                    } else {
                                        echo $view['translator']->trans($value1->getDetails());
                                    }
                                    ?>
                                </div>
                            </div>
                        </div>
                        <?php
                    }
                }
                ?>
            </div>
        </div><!--/.row-->
    </div>
</div>