<?php require('includes/head.php');
  require 'connection/conn.php';
  $customer="select * from `customer` where `active`=0 ";
  $customer_r=$conn->query($customer);
?>
<div class="container">
          <div class="page-inner">
            <div class="page-header">
              <h3 class="fw-bold mb-3">کڕیارە سڕاوەکان</h3>
              <ul class="breadcrumbs mb-3">
                <li class="nav-home">
                  <a href="home.php">
                    <i class="icon-home"></i>
                  </a>
                </li>
                <li class="separator">
                  <i class="icon-arrow-right"></i>
                </li>
                <li class="nav-item">
                  <a href="#"></a>
                </li>
                <li class="separator">
                  <i class="icon-arrow-right"></i>
                </li>
                <li class="nav-item">
                  <a href="#"></a>
                </li>
              </ul>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="card">
                  
                  <div class="card-body">
                    <div class="table-responsive">
                      <table id="basic-datatables"  class="display table table-striped table-hover"  >
<thead>
  <tr bgcolor="skyblue">
     
     
     <th>ناو</th>
     <th>ناو بە لاتینی</th>
	 <th>مۆبایل</th>
     <th>ناونیشان</th>
	 <?php if($pos==1){ ?>
   <th ><a  href="customer_new.php"><img src="icon/add.png" width=25px></a></th>
    <th ><a  href="customer_list.php">Back</a></th>
   <?php }?>
    
  </tr>
  </thead>
  <tbody>
  <?php while($row=mysqli_fetch_array($customer_r)) { ?>
    <tr>
     <td><?php echo $row['customer_name'];?></td>
	 <td><?php echo $row['customer_name_latin'];?></td>
	 <td><?php echo $row['customer_mobile'];?></td>
     <td><?php echo $num1=$row['customer_address'];?></td>
     <th  width=65px>
   <?php if($pos==1){ ?>
   <a onclick='return confirm("دڵنیای لە گەڕانەوە");' href="item_hide.php?customer_id2=<?php echo $row['customer_id'];?>"><img src="icon/show.png" width=25px></a>
   <?php }?></th>
   <th  width=65px>
    <?php if($pos==1){ ?>
  <a href="customer_edit.php?id=<?php echo $row['customer_id'];?>"><img src="icon/edit.png" width=25px></a>
   <?php }?>
     </th></tr>
  <?php } ?>
  </tbody>
</table>

</div>
                  </div>
                </div>
              </div>
			  
			  </div>
          </div>
        </div>
<?php require'includes/foot.php';?>



  