Show the verified subscriber count in the sidebar

This commit is contained in:
James Brooks
2016-02-09 18:57:11 +00:00
committed by Graham Campbell
parent 52a1f42426
commit c9f08a3e6e
2 changed files with 3 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ namespace CachetHQ\Cachet\Composers;
use CachetHQ\Cachet\Models\Component;
use CachetHQ\Cachet\Models\Incident;
use CachetHQ\Cachet\Models\Subscriber;
use Illuminate\Contracts\View\View;
class DashboardComposer
@@ -28,5 +29,6 @@ class DashboardComposer
{
$view->withIncidentCount(Incident::notScheduled()->count());
$view->withComponentCount(Component::all()->count());
$view->withSubscriberCount(Subscriber::isVerified()->count());
}
}

View File

@@ -60,6 +60,7 @@
<a href="{{ route('dashboard.subscribers.index') }}">
<i class="icons ion-email"></i>
<span>{{ trans('dashboard.subscribers.subscribers') }}</span>
<span class="label label-info">{{ $subscriber_count }}</span>
</a>
</li>
<li {!! set_active('dashboard/team*') !!}>