<div class="body" id="consultation">
    <div class="container">
        <div class="wrapper-content">
            <div class="content detail-view">
                <div class="consul-category-box">
                    <div class="consul-category-content table">
                        <div class="column image-box"><img src="<?php echo Yii::app()->baseUrl ?>/images/resource/profile.jpg"></div>
                        <div class="column category-detail">
                            <a href="#" class="category-title"><?php echo $category_model->getCategory();?></a>
                            <div class="author">
                                <span>bersama</span><a href=""><?php echo implode(', ', $category_model->getUstadzNames())?></a>
                            </div>
                            <p><?php echo $category_model->getDetail()?></p>
                            <a href="<?php echo Yii::app()->createUrl("front/page/formkonsultasi") ?>" class="button medium">Konsultasi</a>
                        </div>
                    </div>
                </div>
                <div class="article-related-box single-box">
                    <ul>
                        <?php foreach ($related_aq_model as $related_aq) { ?> 
                            <li>
                                <p class="text-title"><?php echo $related_aq->getQuestion();?>.</p>
                                <a href="<?php echo Yii::app()->createUrl("front/page/detailkonsultasi", array("id" => $related_aq->id, $related_aq->category->getCategory())) ?>" class="link-more">Selengkapnya</a>
                                <p class="meta"><span class="date"><?php echo $related_aq->getCreatedTime();?></span><a href="<?php echo Yii::app()->createUrl("front/page/detailkonsultasi", array("id" => $related_aq->id, $related_aq->category->getCategory())) ?>" class="comment"><?php echo $related_aq->getTotalComment();?></a></p>
                            </li>
                        <?php } ?>
                    </ul>
                </div>
            </div> 
            <div class="sidebar">
                <div class="widget-box magazine">
                    <h4>Swaraikadi Magazine</h4>
                    <?php
                    foreach ($magazine as $content) {
                        ?>
                        <a class="image-box various fancybox.iframe" href="<?php echo Yii::app()->createUrl("front/page/magazine"); ?>">
                            <img src="<?php echo Yii::app()->baseUrl . $content->cover_image ?>" alt="#">
                        </a>
                        <?php
                        break;
                    }
                    ?>
                    <ul>
                        <?php
                        foreach ($magazine as $content) {
                            ?>
                            <li><a href="<?php echo Yii::app()->baseUrl . $content->url ?>"><?php echo $content->title ?></a></li>
                            <?php
                        }
                        ?>
                    </ul>

                    <div class="button-box">
                        <a href="<?php echo Yii::app()->createUrl("front/page/download"); ?>" class="button medium">Arsip</a>
                    </div>
                </div>
                <div class="widget-box info">
                    <h4>Info Kajian</h4>
                    <?php
                    $image = array();
                    foreach ($program as $content) {
                        $image[] = $content->image;
                    }
                    shuffle($image);
                    ?>
                    <a class="image-box" href="<?php echo Yii::app()->createUrl("front/page/info"); ?>">
                        <img src="<?php echo Yii::app()->baseUrl . $image[0] ?>" alt="<?php echo Yii::app()->createUrl("front/page/info"); ?>">
                    </a>
                </div>
                <div class="widget-box donate">
                    <h4>Rekening Donasi</h4>
                    <div class="donate-detail">
                        <img src="<?php echo Yii::app()->baseUrl . $bank->bank_logo ?>">
                        <b><?php echo $bank->bank_name ?></b>
                        <span><i>No. Rek.</i><strong><?php echo $bank->account_number ?></strong></span>
                        <b>a/n <?php echo $bank->account_name ?></b>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>