<?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">
	  <?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">
        <h1><?php echo isset($_SESSION['system_setting']['title_performance_reports']['value']) ? $_SESSION['system_setting']['title_performance_reports']['value']: 'Performance Reports';?></h1>

        <div class="pageTab">
			<?php foreach($type_list as $type): ?>
				<?php if( $tid==$type->id ):?>
          <span class="tab active"><?php echo isset($type->title) ? $type->title : NULL?></span>
				<?php else:?>
          <a href="<?php echo e(url('report/'.$type->id)); ?>" class="tab"><?php echo isset($type->title) ? $type->title : NULL?></a>
				<?php endif;?>
			<?php endforeach; ?>
        </div>
		
		
<?php if( isset($category_list) && !empty($category_list) ):?>
	<?php foreach( $category_list as $category ):?>
	<?php $report_list = $category->report;?>
        <div class="showMoreContainer showMoreGrey">
          <div class="showMoreCont">
            <div class="showMoreContInner">
              <table border="0" cellspacing="0" cellpadding="0" class="tblReport">
                <thead>
                <tr>
                  <th colspan="8"><?php echo isset($category->title) ? $category->title: '';?></th>
                </tr>
                </thead>
                <tr>
                  <td class="col1 graybg">&nbsp;</td>
                  <td class="col2 graybg">Quarter 1</td>
                  <td class="col2 graybg">Quarter 2</td>
                  <td class="col2 graybg">Quarter 3</td>
                  <td class="col2 graybg">Quarter 4</td>
                </tr>
	<?php if( isset($year_list) && !empty($year_list) ):?>
		<?php foreach( $year_list as $year ):?>
		<?php $report = isset($report_list[$year]) ? $report_list[$year]: array();?>
		
		<?php if( !empty($report) && ( $report->quarter_1_path!="" || $report->quarter_2_path!="" || $report->quarter_3_path!="" || $report->quarter_4_path!="" ) ):?>
		<tr>
			<td class="graybg"><?php echo $year;?></td>		
			<td><?php if( $report->quarter_1_path!="" ):?><a href="<?php echo get_ext_path($report->quarter_1_path);?>">View</a><?php endif;?> </td>
			<td><?php if( $report->quarter_2_path!="" ):?><a href="<?php echo get_ext_path($report->quarter_2_path);?>">View</a><?php endif;?> </td>
			<td><?php if( $report->quarter_3_path!="" ):?><a href="<?php echo get_ext_path($report->quarter_3_path);?>">View</a><?php endif;?> </td>
			<td><?php if( $report->quarter_4_path!="" ):?><a href="<?php echo get_ext_path($report->quarter_4_path);?>">View</a><?php endif;?> </td>
		</tr>
		<?php endif;?>
		
		<?php endforeach;?>
	<?php else:?>
		<tr>
			<td class="graybg" colspan="5">No report data</td>
		</tr>
	<?php endif;?>
              </table>
            </div>
          </div>

          <div class="btnShowMore">
            <span class="stateMore">VIEW MORE REPORTS <i class="icon icon-showMore"></i></span>
            <span class="stateLess">VIEW LESS REPORTS <i class="icon icon-hideMore"></i></span>
          </div>

        </div>
	<?php endforeach;?>
<?php endif;?>


        <h2>CPFIS FUNDS REPORTS</h2>

        <div style="display:none;"><?php echo isset($article->content) ? $article->content : NULL?></div>
        <div><?php echo isset($CPFIS_report->content) ? $CPFIS_report->content : NULL?></div>




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


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