<ul class="nav nav-tabs">
  <li class="nav-item">
    <a class="nav-link <?php if($tabid==1){echo 'active';}?>" href="index">Laporan Pembelian</a>
  </li>
  <li class="nav-item">
    <a class="nav-link <?php if($tabid==2){echo 'active';}?>" href="index-2">Laporan Stok</a>
  </li>
    <li class="nav-item">
    <a class="nav-link <?php if($tabid==3){echo 'active';}?>" href="index-3">Laporan Pembelian - Member</a>
  </li>
</ul>