<div class="content-header">
  <div>
    <h4 class="content-title"><?php echo $title; ?></h4>
  </div>
</div><!-- content-header -->
<div class="content-body">
	<a href="admin/laporan/top-donatur/excel" class="btn btn-primary mb-2"><i class="fas fa-file-excel"></i></a>
	<a href="admin/laporan/top-donatur/print" class="btn btn-primary mb-2" target="_blank"><i class="fas fa-print"></i></a>
	<table id="myTable" class="table">
    <thead>
      <tr>
      	<th class="wd-5p">No</th>
				<th>Nama</th>
				<th>Jumlah</th>
      </tr>
    </thead>
    <tbody>
    	<?php $i = 1; ?>
			<?php foreach($donatur as $don): ?>
				<tr>
					<td><?php echo $i; ?>.</td>
					<td><?php echo $don['nama']; ?> <br><?php echo $don['telp']; ?></td>
					<td><?php echo number_format($don['terkumpul'],0,',','.'); ?></td>
				</tr>	
			<?php $i++; ?>
			<?php endforeach; ?>
    </tbody>
  </table>
</div><!-- content-body -->