<?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.neighberhood_party'); ?></span>
                                </h3>
                            </div>
                            <!-- /.box-header -->
                            <div class="box-body">
                                <div class="row text-center">
                                    <?php if($activitys->count() == 0): ?>
                                    <h4><?php echo app('translator')->get('messages.no_pub_nei_party'); ?></h4>
                                    <?php endif; ?>
                                    <?php foreach($activitys as $one): ?>
                                    <div class="col-md-3 col-sm-6 hero-feature">
                                        <div class="thumbnail">
                                            <?php if($one->cover_img != ''): ?>
                                            <img src="<?php echo e($one->cover_img); ?>?fit_w=800&fit_h=500" alt="">
                                            <?php else: ?>
                                            <img src="http://placehold.it/800x500" alt="">
                                            <?php endif; ?>
                                            <div class="caption">
                                                <h3><?php echo e($one->title); ?></h3>
                                                <p><?php echo e(str_limit($one->purpose,50)); ?></p>
                                                <p>
                                                    <?php if($one->time_end >= date("Y-m-d H:s:i") and $one->time_start < date("Y-m-d H:s:i")): ?>
                                                        <a href="<?php echo e(route('website::ActivityApply',['id'=> $one->id])); ?>" class="btn btn-primary"><?php echo app('translator')->get('messages.applyyyy'); ?></a>
                                                        <a href="<?php echo e(route('website::ActivityDetail',['id'=> $one->id])); ?>" class="btn btn-default"><?php echo app('translator')->get('messages.mor_info'); ?></a>
                                                    <?php else: ?>
                                                        <a href="#" class="btn btn-danger"><?php echo app('translator')->get('messages.overrr'); ?></a> <a href="<?php echo e(route('website::ActivityDetail',['id'=> $one->id])); ?>" class="btn btn-default"><?php echo app('translator')->get('messages.mor_info'); ?></a>
                                                    <?php endif; ?>
                                                </p>
                                                <?php if($one->sign_person_max==1): ?>
                                                    <?php if(empty($ActivitiesApplyAllArray[$one->id])): ?>
                                                        <p><?php echo app('translator')->get('messages.empty_person'); ?>:<span class="label label-warning"><?php echo e($one->sign_person_max); ?></span></p>
                                                    <?php else: ?>
                                                        <p><?php echo app('translator')->get('messages.empty_person'); ?>:<span class="label label-warning"><?php echo e($one->sign_person_max-$ActivitiesApplyAllArray[$one->id]); ?></span></p>
                                                    <?php endif; ?>
                                                <?php endif; ?>
                                            </div>
                                        </div>
                                    </div>
                                    <?php endforeach; ?>


                                </div>
                                <!-- /.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(); ?>