<!-- Begin Page Content -->
<div class="container-fluid">
  <!-- Page Heading -->
  <div class="row">
    <div class="col-md-6">
      <h1 class="h3 mb-2 text-gray-800">Provider(s)</h1>
    </div>
    <div class="col-md-6 text-right">
<!--      <a class="btn btn-primary" href="provider_transactions.php">Provider Wise Transactions</a>-->
      <a class="btn btn-primary" href="provider_details.php">Add New Provider</a>
    </div>
  </div>
  <!-- DataTales Example -->
  <div class="card shadow mb-4">
    <div class="card-header py-3">
      <h6 class="m-0 font-weight-bold text-primary">List of Provider(s)</h6>
    </div>
    <div class="card-body">
      <div class="table-responsive">
        <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
          <thead style="color:#fff;background-color:#034ea1">
            <tr>
              <th>S.No</th>
              <th width="30%">Provider</th>
             
              <th>Service</th>
              <th>Api</th>
              <th>Beckup Api</th>
              <th>Status</th>
              <th>Action</th>
            </tr>
          </thead>
          <tfoot>
          <tr>
            <th>S.No</th>
              <th>Provider</th>
             
              <th>Service</th>
              <th>Api</th>
              <th>Beckup Api</th>
              <th>Status</th>
              <th>Action</th>
          </tr>
          </tfoot>
          <tbody>
            <?php for ($i = 0; $i < $rows; $i++) {?>
            <tr >
              <td><?=$i + 1;?></td>
              <td>
                <?=$res[$i]['provider'];?>
              </td>
             
              <td>
                <?=$res[$i]['service'];?>
              </td>
              <td>
                <?=$res[$i]['api_name'];?>
              </td>
              <td>
                <?=$res[$i]['beckup_api_name'];?>
              </td>
              <td>
                <?=status($res[$i]['is_active']);?>
              </td>
              <td>
                <a href="provider_details.php?aid=<?=$res[$i]['provider_id'];?>" ><i class="fa fa-pen-square fa-fw" title="Edit Provider"></i></a> 
<!--                <a href="provider_transactions.php?aid=<?=$res[$i]['provider_id'];?>" ><i class="fa fa-list fa-fw" title="API Provider Transactions"></i></a> |
                <a href="provider_blocked_transactions.php?aid=<?=$res[$i]['provider_id'];?>" ><i class="fa fa-link fa-fw" title="Blocked Transactions"></i></a>
              </td>-->
            </tr>
            <?php }?>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
<!-- /.container-fluid -->