@foreach($categories as $category)
@foreach($locations as $build => $floors)
@endforeach
@foreach($floors as $floor)
@endforeach
@endforeach
@foreach($buildMonitors as $build => $buildData)
@endforeach
@foreach($categories as $category)
@foreach($locations as $build => $floors)
@foreach($floors as $floor)
{{$build}}
總監測數
{{$buildData['sensor_count']}}
總警報數
@if ($buildData['error_count'] > 0) {{$buildData['error_count']}} @else 無警報 @endif
各樓層警報現況 |
---|
{{$floor}}
@if ($floorData['error_count'] > 0)
{{$floorData['error_count']}}
@else
無警報
@endif
|
{{$build.'-'.$floor}}
@if (isset($sensors[$category->id][$build][$floor]))
@foreach($sensors[$category->id][$build][$floor] as $sensor)
@endforeach
@endif
{{isset($lastRecordOfSensor[$sensor->tag]) ? $lastRecordOfSensor[$sensor->tag]->value : '無紀錄'}}