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

  <div class="containerOuter row">
  
    <div class="sideBar col-lg-3 hideMobile">
      <div class="header"><?php echo isset($nav_data->title) ? $nav_data->title: '';?></div>
	  <?php if( !empty($nav_data->sub_list) ):?>
      <ul>
	  	<?php foreach($nav_data->sub_list as $nav_sub): ?>
        <li><a href="<?php echo isset($nav_sub->url) ? $nav_sub->url: '#';?>" class="<?php echo $nav_data->active_id==$nav_sub->id ? 'active': '';?>"><?php echo isset($nav_sub->title) ? $nav_sub->title: '';?></a> </li>
        <?php endforeach; ?>
      </ul>
	  <?php endif;?>
    </div>
	
    <div class="pageWrap floatRight col-lg-9 col-xs-12">
      <!--<div class="subBanner"><img src="images/subBanner/education.jpg"/></div>-->
      <?php if( isset($section->media_path) && $section->media_path!="" ):?>
      <div class="subBanner" style="display:block;"><img src="<?php echo get_ext_path_advanced($section->media_path, $section->media_id, 'o');?>"/></div>
	  <?php endif;?>
      <div class="pageCont">
	  
	  <div class="headerRow clear">
        <h1><?php echo isset($_SESSION['system_setting']['title_events']['value']) ? $_SESSION['system_setting']['title_events']['value']: 'EVENTS';?></h1>
		<form name="event_search_form" id="event_search_form" action="<?php echo e(url('Event/')); ?>" method="get">
        <div class="filterRow">
          <span class="label">Year:</span>
          <span class="selectWrap">
            <select name="year" id="year" onchange="document.getElementById('event_search_form').submit();">
              <option value="">View All</option>
              <?php foreach($year_list as $year_i): ?>
              <option value="<?php echo $year_i;?>" <?php echo $year==$year_i ? ' selected="selected"': '';?>><?php echo $year_i;?></option>
			  <?php endforeach; ?>
            </select>
          </span>
          <span class="label">Sort by:</span>
          <span class="selectWrap">
            <select name="sort" id="sort" onchange="document.getElementById('event_search_form').submit();">
              <option value="Alphabetical" <?php echo $sort=='Alphabetical' ? ' selected="selected"': '';?>>Alphabetical</option>
              <option value="Chronological" <?php echo $sort=='Chronological' ? ' selected="selected"': '';?>>Chronological</option>
            </select>
          </span>
        </div>
		</form>
		</div>

<?php foreach($event_list as $object): ?>
        <div class="eventItem">
          <div class="date"><?php echo date("j F Y", strtotime($object->start_date));?></div>
          <a href="<?php echo e(url('home/event_detail/'.$object->id)); ?>" class="title"><?php echo isset($object->title) ? $object->title : NULL?></a>
        </div>
<?php endforeach; ?>


		<?php if( $pagination!='' ):?>
			<?php echo $pagination;?>
		<?php endif;?>


      </div>
    </div>
  </div>

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