<div class="pxg_admin_content">
    <!-- Header Start -->
    <header class="pxg_header_wrapper">
        <div class="toggle-btn">
            <span></span>
            <span></span>
            <span></span>
        </div>
        <div class="pxg_header_heading">
            <h4><?php echo $page_info['page_title']; ?></h4>
        </div>
        <div class="pxg_hdr_right_content">
            <div class="pxg_hdr_rgt_inner_content">
                <div class="search_wrapper">
                    <input class="ad_datatableSearch" type="text" placeholder="Search the item here">
                    <span class="search_icn">
                    <img src="<?= base_url() ?>assets/images/svg/search.svg" alt="<?php echo html_escape($this->lang->line('ltr_admin_plans_alt_1')); ?>">
                    </span>
                </div>
            </div>
        </div>
    </header>
    <!-- Header End -->
    <!-- Inner Content Start -->
    <div class="pxg__inner_content">
        <!-- User Section Start -->
        <div class="pxg_user_table_main">
                <div class="row">
                    <div class="col-lg-12">
                    <!-- Table Start -->
                        <div class="pxg_table_wrapper">
                          
                                <table id="userTable" class="pxg_custom_table">
                                <thead>
                                    <!-- Table Th Row Start -->
                                    <tr>
                                        <th class="tb_sn">
                                        <?php echo html_escape($this->lang->line('ltr_admin_users_txt_3')); ?>   
                                        </th>
                                        <th class="tb_name">
                                        <?php echo html_escape($this->lang->line('ltr_admin_users_txt_4')); ?>  
                                        </th>
                                        <th class="tb_name">
                                        <?php echo html_escape($this->lang->line('ltr_admin_users_txt_5')); ?>   
                                        </th>
                                        <th class="tb_name">Mobile</th>
                                        <th class="tb_name">Subject</th>
                                        <th class="tb_name">Message</th>
                                    </tr>
                                    <!-- Table Th Row End -->
                                </thead>
                                <tbody>
                                <?php $i =0; foreach ($page_info['data']['contacts_list'] as $key => $value) { ?>
                                    
                                    <tr>
                                        <td class="tb_sn">
                                            <?= ++$i ?>
                                        </td>
                                        <td class="tb_name">
                                            <p>
                                                <?= $value['c_name'] ?>
                                            </p>
                                        </td>
                                        <td class="tb_name">
                                            <p>
                                                <?= $value['c_email'] ?>
                                            </p>
                                        </td>
                                        <td class="tb_name">
                                            <p>
                                                <?= $value['c_mobile'] ?>
                                            </p>
                                        </td>
                                        <td class="tb_name">
                                            <p>
                                                <?= $value['c_subject'] ?>
                                            </p>
                                        </td>
                                        <td class="tb_name">
                                            <p>
                                                <?= (strlen($value['c_message']) > 25) ? substr($value['c_message'], 0, 25) . '...<a href="#" class="read-more" data-message="' . htmlspecialchars($value['c_message']) . '">Read More</a>' : $value['c_message'] ?>
                                            </p>
                                        </td>
                                    </tr>
                                    
                                <?php } ?>
                                </tbody>
                            </table>
                                
                            
                        </div>
                    <!-- Table End -->
                    </div>
                </div>
        </div>
        <!-- User Section End -->
    </div>
</div>

<div class="modal pxg_common_model pxg_responder_model fade" id="messageModal" tabindex="-1" aria-labelledby="messageModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="messageModalLabel">Full Message</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
                    <img src="<?= base_url() ?>assets/images/cancel-icon.svg" alt="cancel-icon">
                    </button>
      </div>
      <div class="modal-body">
          <p id="modalMessageBody" class="mb-4 text-dark" style="word-wrap: break-word;"></p>
        <div class="pxg_model_btn">
        <a type="button" class="pxg_btn pxg_cancel_button" data-bs-dismiss="modal">Close</a>
      </div>
      </div>
      
    </div>
  </div>
</div>