This commit is contained in:
James Brooks
2017-07-18 21:52:56 +01:00
parent 3a7c3a1c7a
commit a23b0c419a
2 changed files with 4 additions and 1 deletions

View File

@@ -153,6 +153,7 @@ return [
'not_verified' => 'Not verified',
'subscriber' => ':email, subscribed :date',
'no_subscriptions' => 'Subscribed to all updates',
'global' => 'Globally subscribed',
'add' => [
'title' => 'Add a new subscriber',
'success' => 'Subscriber has been added!',

View File

@@ -34,7 +34,9 @@
@endif
</div>
<div class="col-xs-3">
@if($subscriber->subscriptions->count() > 0)
@if($subscriber->global)
<p>{{ trans('dashboard.subscribers.global') }}</p>
@elseif($subscriber->subscriptions->isNotEmpty())
{!! $subscriber->subscriptions->map(function ($subscription) {
return sprintf('<span class="label label-primary">%s</span>', $subscription->component->name);
})->implode(' ') !!}