<?php $__env->startSection('css_page_level'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-content'); ?>
<link href="<?php echo e(asset('css/theme.css')); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo e(asset('css/style.css')); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo e(asset('css/dripicon.css')); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo e(asset('css/typicons.css')); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo e(asset('css/font-awesome.css')); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo e(asset('css/responsive.css')); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo e(asset('css/mail.css')); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo e(asset('js/tip/tooltipster.css')); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo e(asset('js/vegas/jquery.vegas.css')); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo e(asset('js/vegas/jquery.vegas.css')); ?>" rel="stylesheet" type="text/css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>

            <div class="wrap-fluid" id="paper-bg">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="box">
                            <div class="box-header">
                                <!-- tools box -->
                                <div class="pull-right box-tools">
                                </div>
                                <h3 class="box-title"><i class="fontello-doc"></i>
                                    <span>社區討論區--<?php echo $forum->title; ?></span>
                                </h3>
                            </div>
                            <div id="content-mail" class="bg-amber">
                            <div class="table-responsive">
                                <!-- THE MESSAGES -->
                                <table class="table table-mailbox">
                                    <tr class="unread">
                                        <td class="small-col"><i class="fa fa-star"></i>
                                        </td>
                                        <td class="name">
                                            <a href="#">
                                                <img alt="" class="img-circle star" src="http://api.randomuser.me/portraits/thumb/men/22.jpg">
                                            </a>
                                        </td>
                                        <td> <?php echo $forum->title; ?></td>
                                        <td class="subject">
                                            <p class="email-summary">
                                                <strong> <?php echo $forum->content; ?></p>
                                        </td>
                                        <td class="time text-right"><?php echo e($forum->created_at); ?> </td>
                                    </tr>

                                    <?php foreach($forum_comments as $forum_comment): ?>
                                        <tr class="unread">
                                            <td class="small-col">
                                            </td>
                                            <td class="name">
                                                <a href="#">
                                                    <?php echo e($forum_comment->author); ?>

                                                </a>
                                            </td>
                                            <td> <?php echo $forum_comment->title; ?></td>
                                            <td class="subject">
                                                <p class="email-summary">
                                                    <strong> <?php echo $forum_comment->content; ?></p>
                                            </td>
                                            <td class="time text-right"><?php echo e($forum_comment->created_at); ?> </td>
                                        </tr>
                                    <?php endforeach; ?>

                                    <!-- END OF THREE -->
                                </table>
                            </div>
                            <div class="form-group">
                                                    <div class="col-md-12">
                                                        <form id="form_add_comment" action="<?php echo e(route('website::post_forum')); ?>" method="POST" >
                                                            <input type="hidden" name="parent_id" value="<?php echo e($forum->id); ?>">
                                                            <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                                                            <input type="hidden" name="title" value="Re: <?php echo e($forum->title); ?>">
                                                            <ul class="media-list">
                                                                <li class="media">
                                                                    <div class="media-body">
                                                                        <p>回應討論</p>
                                                                        <textarea name="content" id="content" rows="10" cols="80"></textarea>
                                                                    </div>
                                                                </li>
                                                            </ul>
                                                            <button id="btn_add_comment" type="submit" class="btn btn-default"> &nbsp; 送出 &nbsp; </button>
                                                        </form>
                                                    </div>
                                                </div>
                            <!-- /.table-responsive -->

                        </div>
                        <!-- /.box -->
                    </div>
                </div>


            </div>
            <!-- #/paper bg -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.front', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>