donation/app/Views/dashboard_accounts.php

124 lines
8.3 KiB
PHP

<!-- Start Content-->
<div class="container-fluid">
<h4 class="header-title mb-3">Account Overviews</h4>
<div class="row">
<div class="col-xl-4 col-md-4">
<div class="card">
<div class="card-body">
<div class="d-flex justify-content-between">
<div>
<h5 class="text-muted font-weight-normal mt-0 text-truncate" title="Financial year">Financial year</h5>
<h3 class="my-2 py-1"><span data-plugin="counterup"><span data-toggle="tooltip" data-placement="bottom" data-original-title="Current Financial year"><?= $year ?></span></span></h3>
<!-- <p class="mb-0 text-muted">
<span class="text-success mr-2"><span class="mdi mdi-arrow-up-bold"></span> 5.27%</span>
<span class="text-nowrap">Since last month</span>
</p> -->
</div>
<!-- <div class="avatar-sm">
<span class="avatar-title bg-soft-primary rounded">
<i class="ri-stack-line font-20 text-primary"></i>
</span>
</div> -->
</div>
</div>
</div>
</div><!-- end col -->
<div class="col-xl-4 col-md-4">
<div class="card">
<div class="card-body">
<div class="d-flex justify-content-between">
<div>
<h5 class="text-muted font-weight-normal mt-0 text-truncate" title="Month">Month</h5>
<h3 class="my-2 py-1"><span data-plugin="counterup"><span data-toggle="tooltip" data-placement="bottom" data-original-title="Current Month"><?= $month ?></span></span></h3>
<!-- <p class="mb-0 text-muted">
<span class="text-danger mr-2"><span class="mdi mdi-arrow-down-bold"></span> 3.27%</span>
<span class="text-nowrap">Since last month</span>
</p> -->
</div>
<!-- <div class="avatar-sm">
<span class="avatar-title bg-soft-primary rounded">
<i class="ri-slideshow-2-line font-20 text-primary"></i>
</span>
</div> -->
</div>
</div>
</div>
</div><!-- end col -->
<div class="col-xl-4 col-md-4">
<div class="card">
<div class="card-body">
<div class="d-flex justify-content-between">
<div>
<h5 class="text-muted font-weight-normal mt-0 text-truncate" title="Today">Today</h5>
<h3 class="my-2 py-1"><span data-plugin="counterup"><span data-toggle="tooltip" data-placement="bottom" data-original-title="Current Today"><?= $today; ?></span></span></h3>
<!-- <p class="mb-0 text-muted">
<span class="text-success mr-2"><span class="mdi mdi-arrow-up-bold"></span> 8.58%</span>
<span class="text-nowrap">Since last month</span>
</p> -->
</div>
<!-- <div class="avatar-sm">
<span class="avatar-title bg-soft-primary rounded">
<i class="ri-hand-heart-line font-20 text-primary"></i>
</span>
</div> -->
</div>
</div>
</div>
</div><!-- end col -->
</div>
<!-- end row -->
<div class="row">
<div class="col-xl-5">
<div class="card">
<div class="card-body">
<h4 class="header-title mb-3">Volunteer Performing</h4>
<div class="table-responsive">
<table class="table table-striped table-sm table-nowrap table-centered mb-0">
<thead>
<tr>
<th>Name</th>
<th>Amount</th>
<!-- <th></th> -->
</tr>
</thead>
<tbody>
<!-- <tr> <td>
<h5 class="font-15 mb-1 font-weight-normal">Volunt</h5>
<span class="text-muted font-13">Senior </span>
</td> -->
<!-- <td>187</td> -->
<!-- <td class="table-action">
<a href="javascript: void(0);" class="action-icon"> <i class="mdi mdi-eye"></i></a>
</td></tr> -->
<?php if (empty($volunter)) : ?>
<tr>
<td colspan="2"><center>No data available</center></td>
</tr>
<?php else : ?>
<?php foreach ($volunter as $value) : ?>
<tr>
<td><?= $value->full_name; ?></td>
<td><?= $value->total_amount; ?></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tbody>
</table>
</div> <!-- end table-responsive-->
</div> <!-- end card-body-->
</div> <!-- end card-->
</div>
<!-- end col-->
</div>
<!-- end row-->
</div> <!-- container -->