Bagosep

Index Playlist 2

Jun 2nd, 2021
619
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php $no = 1; foreach($playlist->data as $row)  : ?>
  2.     <tr>
  3.         <td><?= $no ?></td>
  4.         <td><a href="../track/index.php?id=<?= $row->id ?>"><?= $row->title ?></a></td>
  5.         <td><img src="<?= $row->picture ?>" alt=""></td>
  6.         <td>
  7.             <a href="edit.php?id=<?= $row->id ?>" class="btn btn-warning"><i class="fas fa-edit"></i> Ubah</a>
  8.             <a href="destroy.php?id=<?= $row->id ?>" class="btn btn-danger"><i class="fas fa-trash"></i> Hapus</a>
  9.         </td>
  10.     </tr>
  11. <?php $no++; endforeach; ?>
RAW Paste Data