Use isNotEmpty in more places

This commit is contained in:
James Brooks
2017-01-21 17:32:46 +00:00
parent a4571dab7b
commit f1c09773e2
5 changed files with 10 additions and 10 deletions
@@ -1,4 +1,4 @@
@if(!$scheduled_maintenance->isEmpty())
@if($scheduled_maintenance->isNotEmpty())
<div class="section-scheduled">
@include('partials.schedule')
</div>
@@ -1,8 +1,8 @@
@if(!$stickied_incidents->isEmpty())
@if($stickied_incidents->isNotEmpty())
<div class="section-stickied">
<h1>{{ trans('cachet.incidents.stickied') }}</h1>
@foreach($stickied_incidents as $date => $incidents)
@include('partials.incidents', [compact($date), compact($incidents)])
@include('partials.incidents', [compact($date), compact($incidents)])
@endforeach
</div>
@endif