Skip to content

Commit

Permalink
Fix dashboard partials
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitbohra committed Jan 11, 2019
1 parent 025e2ab commit 064bcfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 3 additions & 4 deletions resources/views/dashboard/_index/collection.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@php
<?php
use Carbon\Carbon;
$sum = App\PaymentDetail::whereMonth('created_at','=',Carbon::today()->month)->sum('payment_amount');
@endphp
?>
<div class="panel bg-green-400">
<div class="panel-body padding-15-20">
<div class="clearfix">
Expand All @@ -21,5 +21,4 @@
</div>
</div>
</div>
</div><!-- /.panel -->

</div><!-- /.panel -->
5 changes: 1 addition & 4 deletions resources/views/dashboard/_index/totalMembers.blade.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
@php
$count = App\Member::where('status',1)->count();
@endphp
<div class="panel bg-light-blue-400">
<div class="panel-body padding-15-20">
<div class="clearfix">
<div class="pull-left">
<div class="color-white font-size-24 font-roboto font-weight-600" data-toggle="counter" data-start="0" data-from="0"
data-to="{{ $count }}" data-speed="500" data-refresh-interval="10"></div>
data-to="{{ App\Member::where('status',1)->count() }}" data-speed="500" data-refresh-interval="10"></div>
</div>

<div class="pull-right">
Expand Down

0 comments on commit 064bcfc

Please sign in to comment.