      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Contributions Per Member
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Reports</a></li>
            <li class="active">Contributions</li>
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">
          <div class="row">
            <div class="col-xs-12">

              <div class="box">
                <div class="box-header">
                  <h3 class="box-title">Contributions Breakdown</h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table id="financial_report" class="table table-bordered table-striped">                    
					<thead>
						<tr>
                        	<th>Month</th>
                        <?php
						foreach($corp_members as $member)
						{?>
							<th><?php echo $this->main_model->get_first_name($member['user_id']);?></th>
						<?php }?>
                        <th>Total</th>
						</tr>
					</thead>
					<tbody>
                     <?php 
					/*echo "<pre>";
					print_r($corp_members);
					echo "<hr>";

					print_r($contributions);
					echo "<hr>";
					$x = 0;
						foreach($contributions as $key => $val)
						 {
							echo $key;
														
					 	 } */
					
					?>
					<?php 
						foreach($contributions as $key => $val) {?>
							<tr>
								<th><?php echo $key;?></th>
                                <?php
									$monthTotal = 0; 
									foreach($corp_members as $member)
									{
										if(!empty($contributions[$key][$member['user_id']]))
										{
											echo "<td>".$contributions[$key][$member['user_id']]."</td>";
											$monthTotal += $contributions[$key][$member['user_id']];
										}
										else
											echo "<td>0</td>";
									}
								?>
                                <th><?php echo $monthTotal;?></th>
							</tr>
					<?php } ?>
                    
                    <tr>
                    <th>Grand Total</th>
                    <?php
						$grandTotal = 0;
                        foreach($corp_members as $member)
                        {
                            echo "<th>".$total[$member['user_id']]."</th>";
							$grandTotal += $total[$member['user_id']];
                        }
                    
                    ?>
                    <th><?php echo $grandTotal?></th>
                    </tr>
                    
					</tbody>
					<tfoot>
						<tr>
                        	<th>Month</th>
                        <?php
						foreach($corp_members as $member)
						{?>
							<th><?php echo $this->main_model->get_first_name($member['user_id']);?></th>
						<?php }?>
                        <th>Total</th>
						</tr>
					</tfoot>
				</table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
            </div><!-- /.col -->
          </div><!-- /.row -->
        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->