<?php require('includes/head.php');
  require 'connection/conn.php';
  $company="select * from `company`  ";
  $company_r=$conn->query($company);
?>
<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>
	 <?php if($pos==1){ ?>
   <th ><a  href="company_new.php"><img src="icon/add.png" width=25px></a></th>
   <?php }?>
    
  </tr>
  </thead>
  <tbody>
  <?php while($row=mysqli_fetch_array($company_r)) { ?>
    <tr>
     <td><?php echo $row['company_name'];?></td>
    
   <th  width=65px>
    <?php if($pos==1){ ?>
  <a href="company_edit.php?id=<?php echo $row['company_id'];?>"><img src="icon/edit.png" width=25px></a>
   <?php }?>
     </th>
	 
	 	 <th width=65px>
		 <?php if($pos==1){ ?>
		 <a href="company_statement.php?c_id=<?php echo $row['company_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';?>



  