Use isNotEmpty in more places
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user