    <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();?>librarian/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();?>librarian/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();?>librarian/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">
                        		<div class="user-list">
                    		    <?php
                                    $flag = 0;
                                    $group_messages = $this->db->get('group_message_thread')->result_array();
                                    foreach ($group_messages as $row):
                                    $members = json_decode($row['members']);
                                    if (in_array($this->session->userdata('login_type').'_'.$this->session->userdata('login_user_id'), $members)):
                                    $flag++;
                                ?>
                        			<a href="<?php echo base_url('librarian/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>
                      				    </div>
                      			    </a>
                          	            <?php endif; ?>
                    			    <?php endforeach;?>
          					    </div>
          				    </div>
                  	    </div>
          		    </div>
          		    <?php include $message_inner_page_name . '.php'; ?>
                </div>
            </div>
        </div>
    </div>