<?php $sentinel = app('Cartalyst\Sentinel\Native\Facades\Sentinel'); ?>

<?php $__env->startSection('css_page_level'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-content'); ?>
            <!-- CONTENT -->
            <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>社區討論區</span>
                                </h3>
                            </div>
                            <!-- /.box-header -->
                            <div class="box-body">
                                <div class="box-body table-responsive no-padding">
                                    <table class="table table-hover">
                                        <thead>
                                        <tr>
                                            <th class="table-checkbox">
                                                <input type="checkbox" class="group-checkable" data-set="#table_mail_list .checkboxes"/>
                                            </th>
                                            <th>
                                                 討論標題
                                            </th>
                                            <th style="width:15%">
                                                 發表者
                                            </th>
                                            <th style="width:4%">
                                                 回覆
                                            </th>
                                            <th style="width:4%">
                                                 點閱
                                            </th>
                                            <th style="width:12%">
                                                 最後發表日期
                                            </th>
                                            <th style="width:8%">
                                                 動作
                                            </th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <?php foreach($forums as $forum): ?>
                                        <tr class="odd gradeX">
                                            <td>
                                                <input type="checkbox" class="checkboxes" value="<?php echo e($forum->id); ?>"/>
                                            </td>
                                            <td>
                                                <?php echo e($forum->title); ?>

                                            </td>
                                            <td>
                                                <?php echo e($forum->author); ?>

                                            </td>
                                            <td>
                                                <?php echo e($forum->count_comments); ?>

                                            </td>
                                            <td>
                                                <?php echo e($forum->count_read); ?>

                                            </td>
                                            <td>
                                                <?php echo e($forum->last_time); ?>

                                            </td>
                                            <td>
                                                <a href="<?php echo e(route('website::discuss_detail_list',['id'=> $forum->id])); ?>">
                                                    <button type="button" class="btn btn-default">查看</button>
                                                </a>
                                            </td>
                                        </tr>
                                        <?php endforeach; ?>
                                        </tbody>
                                    </table>
                                </div>
                                <?php if($forums->count() == 0): ?>
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="alert alert-warning">
                                            <button data-dismiss="alert" class="close" type="button">×</button>
                                            <span class="entypo-cancel-circled"></span>
                                            <strong>很抱歉!</strong>&nbsp;&nbsp;目前社區尚未有討論區。
                                        </div>
                                    </div>
                                </div>
                                <?php endif; ?>
                                <!-- /.box-body -->
                            </div>
                            <!-- /.box-body -->
                        </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(); ?>