<?php if($activestatus_merchant=='1'){  
   $sqlcou = "SELECT * FROM product_master WHERE created_by='$user_id' AND created_type='vendor' ";  
   
   $myquerycou=$conn->query($sqlcou);
   $mydaracou= $myquerycou->fetchAll()  ;
   
   $rows_foundcou = $myquerycou->rowCount();
      
      
    
   
   
   ?>  
<div class="card-body ">
   <div class="profile-box">
      <div class="bottom-line">
         <h6 class="h5 mb-5">Upload Your Product</h6>
      </div>
      <div class="bg-light p-4 rounded-4 mb-4">
         <p class="lead fw-light mb-3">Carefully upload the product in our CSV format</p>
         <!--Download CSV Begin-->
         <div class="col-md-12 mb-4">
            <div class="d-grid text-center">
               <button class="btn btn-secondary" type="button" onclick="product_download_csv()()">
               <i class="fas fa-download text-white pe-2"></i>Download CSV sample format
               </button>
            </div>
         </div>
         <!--Download CSV End-->
         <div class="col-md-12">
            <!--upload_data_csv form Begin-->
            <form name="upload_data_csv" enctype="multipart/form-data" action="forms/upload_csv_product.php" method="POST">
               <input type="file" name="<?=SESS_MASTER?>upload_data"  class="form-control form-control-sm mb-sm-10" id="fileUpload">
               <input type="submit" class="btn btn-secondary my-3" value="SAVE">
            </form>
            <!--upload_data_csv form End-->
         </div>
         <small class="fst-italic"><strong class="text-danger pe-1">Note:</strong>Please Check the Formate Before Upload</small>
      </div>
      <p class="lead p-0 m-0">You can see listed your coupon and deals <a class="text-danger" href="./search-merchant/<?=($user_id)?>">click here.</a></p>
      <p class="lead p-0 m-0">Total uploaded recored : <a class="text-muted" href="#"><?=$rows_foundcou?></a></p>
      <p class="lead p-0 m-0">Last uploaded date :</p>
      <p class="lead p-0 m-0"><a href="./forms/delete_csv" class="text-danger">Delete all old record</a></p>
   </div>
</div>
<?php } 
   ?>
<?php if($activestatus_merchant=='0'){ ?>
<div class="card-body">
   <div class="profile-box">
      <h6 class="h5">Your account is disabled right now. Kindly raise a ticket for approval your account.</h6>
   </div>
</div>
<?php } ?>