    <div class="content-w">
        <?php include 'fancy.php';?>
        <div class="header-spacer"></div>
        <div class="conty bg-white">
            <div class="full-chat-w">
                <div class="full-chat-i">
                    <div class="full-chat-left support-tickets">          
				        <div class="tab-content">
                            <div class="os-tabs-w bg-white">
                                <ul class="navs navs-tabs upper centered">
                                    <li class="navs-item">
                                        <a class="navs-links text-black <?php if($page_name == 'message' && $message_inner_page_name != 'message_new');?>" href="<?php echo base_url();?>admin/message/"><i class="os-icon picons-thin-icon-thin-0306_chat_message_discussion_bubble_conversation nav-color"></i><span><?php echo getEduAppGTLang('chats');?></span></a>
                                    </li>
                                    <li class="navs-item">
                                        <a class="navs-links text-black <?php if($message_inner_page_name == 'message_new') echo "active";?>" href="<?php echo base_url();?>admin/message/message_new/"><i class="os-icon picons-thin-icon-thin-0001_compose_write_pencil_new nav-color"></i><span><?php echo getEduAppGTLang('write');?></span></a>
                                    </li>
                                    <li class="navs-item">
                                        <a class="navs-links text-black <?php if($page_name == 'group') echo "active";?>" href="<?php echo base_url();?>admin/group/"><i class="os-icon picons-thin-icon-thin-0719_group_users_circle nav-color"></i><span><?php echo getEduAppGTLang('groups');?></span></a>
                                    </li>
                                </ul>
                            </div>
          				    <div class="tab-pane active" id="chats"><br>
          				        <center>
          				            <a href="<?php echo base_url();?>admin/group/create_message_group/" class="btn btn-purple btn-sm">
                                        <?php echo getEduAppGTLang('create_group');?>
                                    </a>
                                </center><br>
                    		    <div class="user-list">
                    		    <?php
                                    $group_messages = $this->db->get('group_message_thread')->result_array();
                                    if (sizeof($group_messages) > 0):
                                    foreach ($group_messages as $row):
                                ?>
                    			    <a href="<?php echo base_url('admin/group/group_message_read/'.$row['group_message_thread_code']); ?>/">
                          				<div class="user-w box <?php if (isset($current_message_thread_code) && $current_message_thread_code == $row['group_message_thread_code']) echo 'active'; ?>">
                        				    <div class="avatar with-status status-green">
    	                          				<div class="circle purple"><?php echo strtoupper($row['group_name'][0]); ?></div>
                        				    </div>
                        				    <div class="user-info">
                              					<div class="user-name" title="<?php echo $row['group_name'] ?>">
                            				        <?php echo $row['group_name'] ?>
                          					    </div>
                          					    <div class="last-message">
                                					<a href="<?php echo base_url();?>admin/group/update_group/<?php echo $row['group_message_thread_code'];?>/"><i class="picons-thin-icon-thin-0001_compose_write_pencil_new px15 text-black"></i></a>
                                                    <a onClick="return confirm('<?php echo getEduAppGTLang('confirm_delete');?>')" href="<?php echo base_url();?>admin/group/delete_group/<?php echo $row['group_message_thread_code'];?>"><i class="picons-thin-icon-thin-0057_bin_trash_recycle_delete_garbage_full px15 text-black"></i>
                          					    </div>
                        				    </div>
                      				    </div>
                      			    </a>
                    			    <?php endforeach;?>
                    			    <?php endif;?>
          					    </div>
          				    </div>
                  	    </div>
          		    </div>
          		    <?php include $message_inner_page_name . '.php'; ?>
                </div>
            </div>
        </div>
    </div>