<div class="content-header">
        <div>
          <h4 class="content-title"><?php echo $title; ?></h4>
        </div>
      </div><!-- content-header -->
      <div class="content-body">
      	<table id="example1" class="table">
	        <thead>
	          <tr>
	          	<th class="wd-5p">No</th>
				<th class="wd-10p">Tgl</th>
				<th class="wd-20p">Dari</th>
				<th class="wd-15p">Jumlah</th>
				<th class="wd-14p">Pembayaran</th>
				<th class="wd-16p">Virtual Account</th>
				<th class="wd-10p">Status</th>
				<th class="wd-15p">Opsi</th>
	          </tr>
	        </thead>
	        <tbody>
	        	<?php $i = 1; ?>
				<?php foreach($donasi as $don): ?>
					<?php $donbank = $don['donasi_bank'] ? strtoupper($don['donasi_bank']) : ''; ?>
					<tr>
						<td><?php echo $i; ?>.</td>
						<td><?php echo date('d-m-Y', strtotime($don['donasi_tgl'])); ?></td>
						<td><?php echo $don['user_nama']; ?></td>
						<td><?php echo number_format($don['donasi_jml'],0,',','.'); ?></td>
						<td><?php echo $donbank; ?></td>
						<td><?php echo $don['donasi_va']; ?></td>
						<td>
							<?php if($don['donasi_status'] == 1) { ?>
								<span class="badge badge-warning">Pending</span>
							<?php }else if($don['donasi_status'] == 2) { ?>
								<span class="badge badge-success">Masuk</span>
							<?php }else { ?>
								<span class="badge badge-danger">Gagal</span>
							<?php } ?>
						</td>
						<td>
							<a href="admin/donasi/terima/<?php echo $don['donasi_id']; ?>" class="btn btn-sm btn-warning"><i class="fa fa-check me-1"></i> Terima</a>
							<a href="admin/donasi/tolak/<?php echo $don['donasi_id']; ?>" class="btn btn-sm btn-danger"><i class="fa fa-times me-1"></i> Tolak</a>
						</td>
					</tr>	
				<?php $i++; ?>
				<?php endforeach; ?>
	        </tbody>
	      </table>
      </div><!-- content-body -->