<div class="col-sm-12 col-lg-12 main " style="height: <?php
if ($check) {
    echo 2;
} else {
    echo 5;
}
//#7aa93c;
?>00px; " id="bggg">
    <div class="container" style="padding-top: 15px; color: #FFF;position: relative;z-index: 1;">
        <div class="col-lg-12">
            <?php if (!$check) { ?>
                <div style="margin: auto; text-align: center;padding-top: 65px;">
                    <h1 style="padding-top: 15px; color: #FFF;"><?php echo $view['translator']->trans("Launch your Stunning App or Game Today."); ?></h1>
                    <h2 style="padding-top: 15px; color: #FFF;">
                        <?php echo $view['translator']->trans("Buy iOS, Android Apps or Sell your App Template"); ?>
                    </h2>
                    <div style="padding-top: 15px; color: #FFF;"><a href="<?php echo $view['router']->generate('register', array(), true); ?>" class="btn btn-success" style="width: 300px;height: 80px;line-height: 65px;font-size: 30px;"><?php echo $view['translator']->trans("REGISTER IT'S FREE"); ?></a></div>
                </div>
            <?php } else { ?>
                <div style="margin: auto; text-align: center;padding-top: 55px;">
                    <div class="col-lg-2"></div>
                    <div class="col-lg-8">
                        <form role="search" action="<?php echo $view['router']->generate('search', array(), true); ?>" method="GET">
                            <div class="form-group">
                                <input id="s" name="s" type="text" class="form-control" placeholder="<?php echo $view['translator']->trans("Search"); ?>" style="font-size: 30px;height: 60px;">
                            </div>
                        </form>
                    </div>
                </div>
            <?php } ?>
        </div>
    </div>
</div>
<div class="col-sm-12 col-lg-12 main" id="mainContents">
    <div class="container">
        <?php
        if ($list) {
            foreach ($list as $value) {
                if ($feature[$value->getId()] != 0) {
                    ?>
                    <div class="row">
                        <div class="col-lg-12 no-padding">
                            <div class="col-lg-12">
                                <h4><img src="<?php echo $view->escape('/uploads/categories/'); ?><?php echo $value->getSmallIcon(); ?>"  style="width: 24px; min-height: 24px; height: 24px; margin-top: -5px; margin-bottom: 0px;"> <?php echo $view['translator']->trans("Features"); ?> : <?php echo $value->getTitle(); ?>
                                    <a class="viewAll" href="<?php echo $view['router']->generate('view_categories', array('id' => $value->getId(), 'title' => Market\ZodacoBundle\System::_reString($value->getShortTitle())), true); ?>"><?php echo $view['translator']->trans("View All"); ?></a></h4>
                            </div>
                        </div>
                        <div class="col-lg-12 no-padding">
                            <?php
                            foreach ($feature[$value->getId()] as $value1) {
                                $url = $view['router']->generate('view_products', array('id' => $value1->getId(), 'title' => Market\ZodacoBundle\System::_reString($value1->getTitle())), true);
                                ?>
                                <div class="col-lg-3">
                                    <div class="panel panel-default itemBorder">
                                        <div class="panel-body itemList">
                                            <div class="preview">
                                                <a href="<?php echo $url; ?>"><img class="tool" title="<?php echo $value1->getShortDetails(); ?>" src="<?php echo $view->escape('/uploads/items/'); ?><?php echo $value1->getPreview(); ?>" ></a>
                                            </div>
                                            <div class="thumbnail1">
                                                <a href="<?php echo $url; ?>"><img class="tool" title="<?php echo $value1->getTitle(); ?>" src="<?php echo $view->escape('/uploads/items/'); ?><?php echo $value1->getIcon(); ?>" ></a>
                                            </div>
                                            <div class="details">
                                                <a href="<?php echo $url; ?>"><?php echo $value1->getTitle(); ?></a>
                                            </div>
                                            <div class="short_details">
                                                <?php echo $value1->getShortDetails(); ?>
                                            </div>
                                            <div class="sub_category">
                                                <a href="<?php echo $view['router']->generate('view_categories', array('id' => $value1->getCategories()->getId(), 'title' => Market\ZodacoBundle\System::_reString($value1->getCategories()->getShortTitle())), true); ?>"><img src="<?php echo $view->escape('/uploads/categories/'); ?><?php echo $value1->getCategories()->getSmallIcon(); ?>" class="tool" title="<?php echo $value1->getCategories()->getTitle() . " : " . $value1->getCategories()->getShortTitle(); ?>"></a>
                                                <p><?php echo $view['translator']->trans("$"); ?><?php echo number_format($value1->getPrice(), 2); ?></p>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <?php
                            }
                            ?>
                        </div>
                    </div><!--/.row-->
                    <?php
                }
            }
        }
        ?>
    </div>
</div>