<?php
$view->extend('MarketZodacoBundle::base.html.php');
$view['slots']->set('title', $view['translator']->trans("Contact Us") . " | " . $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); ?>" class="active"><?php echo $view['translator']->trans("Contact Us"); ?></a></li>
                    </ul>
                </div>
            </div>
            <div class="col-lg-9 no-padding">
                <div class="col-lg-12">
                    <?php if ($error == 1) { ?>
                        <div class="alert bg-danger" role="alert">
                            <ul style="list-style: none; padding-left: 0px;">
                                <li><?php echo $view['translator']->trans("Error! Please try again."); ?></li>
                            </ul>
                        </div>
                    <?php } ?>
                    <?php if ($error == 2) { ?>
                        <div class="alert bg-success" role="alert">
                            <ul style="list-style: none; padding-left: 0px;">
                                <li><?php echo $view['translator']->trans("Send contact success!"); ?></li>
                            </ul>
                        </div>
                    <?php } ?>
                    <form role="form" method="POST" action="">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <?php echo $view['translator']->trans("Send a Support Ticket"); ?>
                            </div>
                            <div class="panel-body">
                                <fieldset>
                                    <div class="form-group">
                                        <label><?php echo $view['translator']->trans("Email"); ?></label>
                                        <input class="form-control" placeholder="<?php echo $view['translator']->trans("Email"); ?>" id="email" name="email" type="email" required value="<?php echo ($check) ? $check->getEmail() : ""; ?>">
                                    </div>
                                    <div class="form-group">
                                        <label><?php echo $view['translator']->trans("Your Issues"); ?></label>
                                        <select class="form-control" id="issue_id" name="issue_id" required>
                                            <option value="">- <?php echo $view['translator']->trans("Select an Issue"); ?> -</option>
                                            <option value="1"><?php echo $view['translator']->trans("File Issue"); ?></option>
                                            <option value="2"><?php echo $view['translator']->trans("Payment Issue"); ?></option>
                                            <option value="3"><?php echo $view['translator']->trans("License Inquiry"); ?></option>
                                            <option value="4"><?php echo $view['translator']->trans("Copyright"); ?></option>
                                            <option value="5"><?php echo $view['translator']->trans("Large Deposit"); ?></option>
                                            <option value="6"><?php echo $view['translator']->trans("Suggestion"); ?></option>
                                            <option value="7"><?php echo $view['translator']->trans("Other"); ?></option>
                                        </select>
                                    </div>
                                    <div class="form-group">
                                        <label><?php echo $view['translator']->trans("How can we help you?"); ?></label>
                                        <textarea class="form-control"  type="text" id="details" name="details" rows="10"></textarea>
                                    </div>
                                    <button type="submit" class="btn btn-danger"><?php echo $view['translator']->trans("Send"); ?></button>
                                </fieldset>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div><!--/.row-->
    </div>
</div>