
<body>
   <header class="header bg-white position-relative z-index-10" id="header">
      <div class="header-main">
         <div class="container">
            <div class="row align-items-center">
               <div class="col-lg-3">
                  <div class="header-bar d-flex align-items-center">
                     <div class="header-hamburger d-block d-lg-none">
                        <button type="button" class="no-animation" id="header-hamburger">
                        <span></span>
                        <span></span>
                        <span></span>
                        </button>
                     </div>
                     <div class="header-logo">
                        <a href="/">
                        <img src="<?=$DVR->site('logo');?>" alt="<?= $DVR->site('site_ten'); ?>"style="height:40px">
                        </a>
                     </div>
                     <div class="header-button d-lg-none ml-auto d-flex align-items-center justify-content-end">
                        <div class="header-button_items position-relative">
                           <button type="button"
                              class="btn-theme btn-theme_gray btn-collapse_search btn-call_search">
                           <iconify-icon icon="line-md:person-search"  style="color: #cd2d2d"></iconify-icon>
                           </button>
                           <div class="header-search">
                              <form method="POST" action="/search/scam">
                                 <div class="form-group position-relative">
                                    <input type="text" class="form-control" name="scam"
                                       placeholder="Nhập số điện thoại, số tài khoản ngân hàng ...">
                                    <button type="submit">
                                   <iconify-icon icon="line-md:person-search"  style="color: #cd2d2d"></iconify-icon>
                                    </button>
                                 </div>
                              </form>
                           </div>
                        </div>
                        <?php if(empty($getUser['username'])) { ?>
                    <div class="header-button_items position-relative">
                           <a href="/login" role="button" class="btn-theme btn-theme_primary">
                              <div class="d-block d-sm-none">
                                 <i class="	fas fa-user-alt"></i>
                              </div>
                              <div class="d-sm-block d-none">
                                 Tài Khoản
                              </div>
                              <span></span>
                           </a>
                        </div>
                      <?php } else { ?>
                      <div class="header-button_items position-relative">
                           <a href="/profile" role="button" class="btn-theme btn-theme_primary">
                              <div class="d-block d-sm-none">
                                 <i class="fas fa-user-alt"></i>
                              </div>
                              <div class="d-sm-block d-none">
                                  <?=$getUser['username'];?> - <?=format_cash($getUser['money']);?>đ
                              </div>
                              <span></span>
                           </a>
                        </div>
                     <?php }?>
                     </div>
                  </div>
               </div>
               <div class="col-lg-6">
                  <div id="header-navigation" class="header-navigation d-lg-flex align-items-center justify-content-end">
                     <ul>
                        <li class="d-block d-lg-none header-navigation_logo">
                           <a href="/">
                           <img src="<?=$DVR->site('logo');?>" alt="" style="height:40px">
                           </a>
                           <button type="button" class="header-navigation_close" id="header-navigation_close"><i
                              class="far fa-times"></i></button>
                        </li>
                        <li>
                           <a  href="/post/gioi-thieu.html" >
                           GIỚI THIỆU
                           </a>
                        </li>
                        <li>
                           <a  href="/post/dieu-khoan.html" >
                           ĐIỀU KHOẢN
                           </a>
                        </li>
                        <li>
                           <a  href="/trust-services" >
                           QUỸ BẢO HIỂM ADMIN
                           </a>
                           </a>
                        </li>
                        <li> <a href="/chatcongdong"> CHAT CỘNG ĐỒNG </a> </li>
                     </ul>
                  </div>
               </div>
               <div class="col-lg-3">
                  <div class="header-button d-none d-lg-flex align-items-center justify-content-end">
                     <div class="header-button_items position-relative">
                        <button type="button" class="btn-theme btn-theme_gray btn-collapse_search btn-call_search">
                       <iconify-icon icon="line-md:person-search"  style="color: #cd2d2d"></iconify-icon>
                        </button>
                        <div class="header-search">
                           <form method="POST" action="/search/scam">
                              <div class="form-group position-relative">
                                 <input type="text" class="form-control" name="scam"
                                    placeholder="Nhập số điện thoại, số tài khoản ngân hàng ...">
                                 <button type="submit">
                                 <iconify-icon icon="line-md:person-search"  style="color: #cd2d2d"></iconify-icon>
                                 </button>
                              </div>
                           </form>
                        </div>
                     </div>
                     <?php if(empty($getUser['username'])) { ?>
                     <div class="header-button_items position-relative">
                        <a href="/login" role="button" class="btn-theme btn-theme_primary">
                        Tài Khoản
                        <span></span>
                        </a>
                     </div>
                      <?php } else { ?>
                      <div class="header-button_items position-relative">
                        <a href="/profile" role="button" class="btn-theme btn-theme_primary">
                        <?=$getUser['username'];?>
                        <span></span>
                        </a>
                     </div>
                     <?php }?>
                  </div>
               </div>
            </div>
         </div>
      </div>
      <div class="header-overlay" id="header-overlay"></div>
   </header>