<?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><?php echo app('translator')->get('messages.nei_vote'); ?></span>
                                </h3>
                            </div>
                            <!-- /.box-header -->
                            <div class="box-body">
                                <div class="box-body table-responsive no-padding">
                                    <table class="table table-hover">
                                        <tbody><tr>
                                            <th><?php echo app('translator')->get('messages.start_time'); ?></th>
                                            <th><?php echo app('translator')->get('messages.end_time'); ?></th>
                                            <th><?php echo app('translator')->get('messages.theme'); ?></th>
                                            <th><?php echo app('translator')->get('messages.futnnnnn'); ?></th>
                                        </tr>
                                        <?php foreach($votes as $vote): ?>
                                        <tr>
                                                <td><?php echo e($vote->time_start); ?></a></td>
                                                <td><?php echo e($vote->time_end); ?></a></td>
                                                <td><?php echo e($vote->title); ?></td>
                                                <td>
                                                    <?php if($vote->time_end > date("Y-m-d H:s:i") and $vote->time_start < date("Y-m-d H:s:i") and $VoteListsParticipate[$vote->id]=="[]"): ?>
                                                        <a href="<?php echo e(route('website::vote_detail',['id'=> $vote->id])); ?>">
                                                            <button type="button" class="btn btn-default"><?php echo app('translator')->get('messages.vote'); ?></button>
                                                        </a>
                                                    <?php elseif( $vote->time_end < date("Y-m-d H:s:i")): ?>
                                                        <button type="button" class="btn btn-default"><?php echo app('translator')->get('messages.already_closed'); ?></button>
                                                    <?php elseif($VoteListsParticipate[$vote->id]!="[]"): ?>
                                                        <button type="button" class="btn btn-default"><?php echo app('translator')->get('messages.votedddddd'); ?></button>
                                                    <?php endif; ?>
                                                    <a href="<?php echo e(route('website::vote_detail_list',['id'=> $vote->id])); ?>">
                                                        <button type="button" class="btn btn-default"><?php echo app('translator')->get('messages.query'); ?></button>
                                                    </a>
                                                </td>
                                        </tr>
                                        <?php endforeach; ?>
                                    </tbody></table>
                                </div>
                                <?php if($votes->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><?php echo app('translator')->get('messages.sorry'); ?></strong>&nbsp;&nbsp;<?php echo app('translator')->get('messages.no_pub_vote'); ?>
                                        </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(); ?>