      <div class='row'>
         <div class='col-md-12'>
		 <div class="card">
             <div class="card-header">	
               <h5 class="card-title"><i class="fas fa-graduation-cap"></i> Data Pembayaran</h5>
                </div>
				
			 
           <div class='card-body'>
                    <div class='table-responsive'>
                        <table style="font-size: 11px" id='example1' class='table  table-hover'>
                            <thead>
                            <tr>
                               
                                    <th width='5%'>#</th>
                                    <th width='15%'>NIS</th>
                                    <th>Nama Siswa</th>
                                   <th width='15%'>Kelas</th>
								    
									 <th width='5%'>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
							$no=0;
                            $data = mysqli_query ($koneksi, " select * FROM trx
							JOIN siswa ON siswa.id_siswa=trx.idsiswa ORDER BY trx.idt DESC");
						while ($siswa = mysqli_fetch_array ($data)){
							
                                $no++;
                              
                            ?>
                                <tr>
                                  
					<td>
						<?php echo $no++; ?>
					</td>
					<td>
						<?php echo $siswa['nis']; ?>
					</td>
					<td>
						<?php echo $siswa['nama']; ?>
					</td>
					<td>
						<?php echo $siswa['id_kelas']; ?>
					</td>
					
									 <td>
									 <a href="?pg=detailtransaksi&idsiswa=<?php echo $siswa['id_siswa'] ; ?>" class="btn btn-primary btn-sm">Detail</a>
									 </td>
									  </tr>
                            <?php }
                            ?>


                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
 