donation/app/Views/donation_data_table.php
2020-11-23 15:46:19 +05:30

40 lines
919 B
PHP

<div class="container">
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-4">
<h2>Donation Data</h2>
</div></div></br>
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-8">
<table class="table">
<tr>
<th> Donation Date</th>
<th> Cause Name</th>
<th> Amount</th>
<th> Payment Mode</th>
<th> Referance 1</th>
<th> Donation Ref</th>
<th> Action</th>
</tr>
<?php foreach ($donationdata as $row)
{ ?>
<tr>
<td><?php echo $row['date'];?></td>
<td><?php echo $row['cause_name'];?></td>
<td><?php echo $row['amount'];?></td>
<td><?php echo $row['mode_of_payment'];?></td>
<td><?php echo $row['ref_1'];?></td>
<td><?php echo $row['donation_ref'];?></td>
<td><a href="<?= base_url() ?>/Dashboard/edit_donation_data/<?php echo $row['id'];?>">Edit</a></td>
</tr>
<?php } ?>
<table>
</div>
</div>
</div>