<!DOCTYPE html>
<html lang="en">
<head>
 <?php $this->load->view('front/includes/header-script')?>
 <title><?=TITLE?></title>
</head>
<body>
 <header>
  <div class="container">
   <div class="logo d-flex">
    <img src="<?=base_url();?>assets/front/img/logo.jpg" alt=""> 
    <span class="d-flex align-items-center justify-content-center">
     <h1>Continuing Education Registration</h1>
   </span>
 </div>
</div>
</header>
<div class="container">
  <section class="abc-approve">
    <div class="container">
     <?php 
     $cart = $this->session->userdata('cart');
     foreach ($cart as $cartcount => $cartvalue) {
      foreach ($cartvalue as $formcount => $form) { ?>      
        <h2><?=$form?></h2>
        <p>Start Date: <br>
         End Date: <br>
         Time: <br>
         Location: <br>
         Days of Week: 
       </p>
       <?php $cart_items = $this->session->userdata('cart_items'.$form);
       foreach ($cart_items as $itemcount => $item) {
        foreach ($item as $key => $value) { ?>
       
       <?php print_r($key);
          print_r($value); exit();
        }

      }
    }
  }

?>
















 <!--<?php foreach($return_class as $value) { ?>
    <h1>Review / Approve Registrations</h1>
    <h2><?=$value['class_name']?></h2>
    <p>Start Date: <?=date("d-m-Y",strtotime($value['calss_start_date']))?><br>
     End Date: <?=date("d-m-Y",strtotime($value['calss_end_date']))?><br>
     Time: <?=date('h:i A',strtotime($value['calss_start_time']))?> – <?=date('h:i A',strtotime($value['calss_end_time']))?><br>
     Location: <?=$value['class_room']?><br>
     Days of Week: <?=$value['class_day']?>
   </p>
   <?php $m_type=0; $n_type=0; $s_type=0;
   foreach($registrants as $val) { 
    if($val['reg_m_type'] == "M"){
      $m_type++;
    }else if($val['reg_m_type'] == "N"){
      $n_type++;
    }else{
      $s_type++;
    }
    ?>
    <div class="approve">
      <label><?php if($m_type==1 || $n_type==1 || $s_type==1){?><span><?=$value['class_id']?> </span><?php } ?><?php if($val['reg_m_type'] == "M" && $m_type==1){echo "Member / Alumni";}elseif($val['reg_m_type'] == "N" && $n_type==1){echo "Non-Member ";}elseif($val['reg_m_type'] == "S" && $s_type==1){echo "Subscribing Employer";}?></label>
      <div class="d-flex approve-content">
        <div class="col-sm-8 no-pad"><?=$val['att_f_name']?>  <?=$val['att_l_name']?>   <?=$val['att_email']?>  <?=$val['att_number']?></div>
        <div class="col-sm-4">$ <?=$val['att_price']?>.00</div>
      </div>
    <?php } ?>
    <div class="d-flex alumi-content class-sum">
      <div class="col-sm-8 no-pad">Class Total</div>
      <div class="col-sm-4">$ <?=$value['regclass_total_price']?>.00</div>
    </div>
  </div>
<?php } ?> -->
<div class="d-flex alumi-content class-sum grand">
  <div class="col-sm-8 no-pad">Grand Total</div>
  <div class="col-sm-4">$ 2000.00</div>
</div>
<div class="d-flex justify-content-between abc-btn">
  <div class="p-2"><a href="<?= base_url();?>"><button type="button" class="btn" style="background: #be0000; color: #fff;">Back</button></a></div>
  <div class="p-2 ml-auto"><a href="<?= base_url();?>review-payment"><button type="button" class="btn" style="background: #899ec4;">Approve</button></a></div>
</div>
</div>
</section>
<?php $this->load->view('front/includes/footer-script')?>
</body>
</html>








        <div class="approve">
         <label><span>5</span>Member / Alumni</label>
         <div class="d-flex approve-content">
          <div class="col-sm-8 no-pad">Joe Smith jsmith@yahoo.com (714) 293-2310 (remove)</div>
          <div class="col-sm-4">$ 196.00</div>
        </div>
        <div class="d-flex alumi-content class-sum">
          <div class="col-sm-8 no-pad">Class Total</div>
          <div class="col-sm-4">$ 958.00</div>
        </div>
      </div>

            $m_last_name = array('m_last_name'.$form => $this->input->post('m_last_name_'.$form),'type' => "M");
      $m_email_id = array('m_email_id'.$form => $this->input->post('m_email_id_'.$form),'type' => "M");
      $m_phone_no = array('m_phone_no'.$form => $this->input->post('m_phone_no_'.$form),'type' => "M");
      $n_first_name = array('n_first_name'.$form => $this->input->post('n_first_name_'.$form));
      $n_last_name = array('n_last_name'.$form => $this->input->post('n_last_name_'.$form));
      $n_email_id = array('n_email_id'.$form => $this->input->post('n_email_id_'.$form));
      $n_phone_no = array('n_phone_no'.$form => $this->input->post('n_phone_no_'.$form));
      $s_first_name = array('s_first_name'.$form => $this->input->post('s_first_name_'.$form));
      $s_last_name = array('s_last_name'.$form => $this->input->post('s_last_name_'.$form));
      $s_email_id = array('s_email_id'.$form => $this->input->post('s_email_id_'.$form));
      $s_phone_no = array('s_phone_no'.$form => $this->input->post('s_phone_no_'.$form));

      $alldata = array('alldata'.$form =>$m_first_name,$m_last_name,$m_email_id,$m_phone_no,$n_first_name,$n_last_name,$n_email_id,$n_phone_no,$s_first_name,$s_last_name,$s_email_id,$s_phone_no);