<?php require('includes/head.php');
  require 'connection/conn.php';
  $store="select * from `store` where `active`=1 ";
  $store_r=$conn->query($store);
?>
<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="store_new.php"><img src="icon/add.png" width=25px></a></th>
    <th ><a  href="store_list_hidden.php"><img src="icon/hidden.png" width=25px></a></th>
   <?php }?>
    
  </tr>
  </thead>
  <tbody>
  <?php while($row=mysqli_fetch_array($store_r)) { ?>
    <tr>
     <td style="font-size:16pt"><?php echo $row['store_name'];?></td>
	 <td style="font-size:16pt"><?php echo $row['store_name_latin'];?></td>
	 <td><?php echo $row['store_mobile'];?></td>
     <td><?php echo $num1=$row['store_address'];?></td>
     <th  width=65px>
   <?php if($pos==1){ ?>
   <a onclick='return confirm("دڵنیای لە سڕینەوە");' href="item_hide.php?store_id=<?php echo $row['store_id'];?>"><img src="icon/del.png" width=25px></a>
   <?php }?></th>
   <th  width=65px>
    <?php if($pos==1){ ?>
  <a href="store_edit.php?id=<?php echo $row['store_id'];?>"><img src="icon/edit.png" width=25px></a>
   <?php }?>
     </th>
	 
	 	 <th width=65px>
		 <?php if($pos==1){ ?>
		 <a href="store_statement.php?s_id=<?php echo $row['store_id'];?>"><img src="icon/invoice.png" width=30px></a><?php }?></th>

	 
	 
	 
	 </tr>
  <?php } ?>
  </tbody>
</table>

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



  