出于某种原因,我的刀片页面无法显示“#34; up"”事件的网站,尽管它能够显示已关闭和禁用的网站。代码是相同的代码。我很感激任何建议。
<tbody>
@foreach($notes as $notification)
<?php $notificationHealth = $notification->status('health'); ?>
<?php $notificationSpeed = $notification->status('speed'); ?>
@if ((is_null($active) || $notification->active == $active) && (empty($health) || ($health === 'down' && empty($notificationHealth['value'])) || $notificationHealth['value'] === $health))
<tr>
<td> {{ $notification->website_url }} </td>
@if($notificationHealth !== false)
@if(\App\Notification::health($notificationHealth['value']) == 'up')
<td> {{ \App\Notification::health($notificationHealth['value']) }} <span class="up"></span><br><span class="timestamp_green">{{ $notificationHealth['timestamp'] }}</span></td>.
@elseif(\App\Notification::health($notificationHealth['value']) == 'down')
<td> {{ \App\Notification::health($notificationHealth['value']) }} <span class="down"></span><br><span class="timestamp_red">{{ $notificationHealth['timestamp'] }}</span></td>
@else
<td> {{ \App\Notification::health($notificationHealth['value']) }} <span class="unsigned"></span><br><span class="timestamp_unsigned">{{ $notificationHealth['timestamp'] }}</span></td>
@endif
@else
<td> N/A <span class="unsigned"></span></td>
@endif
这是快照页面