<!--  <pre>
   <?php print_r($week_appointments);?>
 </pre> -->

                    <li class="time_slot">
                        <div class="ip_time_interval">
                          <ul>
                       
                            <?php for ($i=1; $i <=24 ; $i++) { 
                              ?>
                              <li><p><?php echo $i;?>:00</p></li>
                              <?php
                              }?>
                          </ul>
                        </div>
                      </li>

                   
                      <?php foreach ($week_appointments as $key => $value) 
                       { 
                        
                    ?>
                      <li>
                        <div class="ip_time_avialability">
                          <ul>
                             <?php for ($i=0; $i <24 ; $i++) { ?>
                              <li>
                                    <div class="ip_avialability ">
                                      <?php

                             foreach ($value as $key_inner => $value_inner) 
                             {
                               if($value_inner['hour']==$i)
                               {
                                ?>
                                 <div class="ip_avialable">
                                     <?php echo$value_inner['count'];?> <?php load_language('appointments');?>
                                  </div>
                              <?php


                                 }
                                
                               }

                              ?>
                            <!--  <li>
                              <div class="ip_avialable">
                               1 Appointments
                              </div>
                            </li> -->
                              </div>
                                  </li>
                              <?php

                              }?>

                         <!--    <li>
                              <div class="ip_avialability ip_avialable">
                                <span><img src="<?php echo base_url();?>assets/images/ip_pic.png"></span>
                                <span>Ria Lorence</span>
                              </div>
                            </li> -->
                            
                           
                          </ul>
                        </div>
                      </li>

                      <?php
                    }
                    ?>
                     <!--  <li>
                        <div class="ip_time_avialability">
                          <ul>
                            <li>
                              <div class="ip_avialability ip_avialable">
                                <span><img src="<?php echo base_url();?>assets/images/ip_pic.png"></span>
                                <span>Ria Lorence</span>
                              </div>
                            </li>
                            <li>
                              <div class="ip_avialability ip_avialable">
                                <span><img src="<?php echo base_url();?>assets/images/ip_pic.png"></span>
                                <span>Ria Lorence</span>
                              </div>
                            </li>
                          
                          </ul>
                        </div>
                      </li>
                      -->
                      <div class="clear"></div>