<?php $__env->startSection('styles'); ?>
	<link href="<?php echo e(asset('/css/select2.css')); ?>" rel="stylesheet">
	<link href="<?php echo e(asset('/css/bootstrap-datepicker3.min.css')); ?>" rel="stylesheet">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('banner'); ?>
	<?php echo $__env->make('sections.banner', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('contents'); ?>
	
<?php $__env->stopSection(); ?>

<?php $__env->startSection('widgets'); ?>
	<section id="latest-events">
		<div class="container">
			<div class="col-md-12 container-wrapper">
				<h2 class="section-title">Upcoming Events</h2>
				<p class="section-subtitle">Short subtitle here</p>

				<?php foreach($upcomingevents as $ev): ?>
					<div class="col-md-4">
						<div class="latest-event-item">
							<a href="<?php echo e(url('/event')); ?>/<?php echo e($ev->id); ?>/view">
								<img src="<?php echo e(asset('/uploads/events/md')); ?>/<?php echo e($ev->image); ?>" class="img-responsive">
								<h3 class="title">Event One Title</h3>
								<p class="location"><i class="fa fa-map-marker"></i> <?php echo e($ev->location); ?></p>

								<div class="info">
									<ul class="info-date"> 
										<li><i class="fa fa-calendar yellow"></i> <?php echo e(date("d/m/Y", strtotime($ev->event_date))); ?></li>
									</ul>
									<ul class="info-views">
										<li><i class="fa fa-heart orange"></i> <?php echo e($ev->favs); ?></li>
										<li><i class="fa fa-eye orange"></i> <?php echo e($ev->views); ?></li>
									</ul>
									<div class="clearfix"></div>
								</div>
							</a>
						</div>
					</div>
				<?php endforeach; ?>
			</div>
		</div>
	</section>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('script'); ?>
	<script type="text/javascript" src="<?php echo e(asset('/js/select2.full.min.js')); ?>"></script>
	<script type="text/javascript" src="<?php echo e(asset('/js/placeholder.min.js')); ?>"></script>
	<script type="text/javascript" src="<?php echo e(asset('/js/bootstrap-datepicker.min.js')); ?>"></script>
	<script>
		$(function(){
			$('.js-single').select2();
			$('.event-date .input-group.date').datepicker({
				format: "dd-mm-yyyy",
				autoclose: true
			});
		});
	</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('masters.base', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>