@inject('sentinel', 'Cartalyst\Sentinel\Native\Facades\Sentinel') @inject('CommunityPresenter','NSST\Presenters\CommunityPresenter') 櫃台勤務系統 - {{ $CommunityPresenter->comName() }}
回總監控首頁
@foreach($categories as $category)
@foreach($locations as $build => $floors)
@foreach($floors as $floor)
@endforeach
@endforeach
@endforeach
@foreach($buildMonitors as $build => $buildData)

{{$build}}

總監測數

{{$buildData['sensor_count']}}

總警報數

@if ($buildData['error_count'] > 0) {{$buildData['error_count']}} @else 無警報 @endif

@foreach($buildData['floor'] as $floor => $floorData) @endforeach
各樓層警報現況
{{$floor}}
@if ($floorData['error_count'] > 0) {{$floorData['error_count']}} @else 無警報 @endif
@endforeach
@foreach($categories as $category) @foreach($locations as $build => $floors) @foreach($floors as $floor)

{{$build.'-'.$floor}}

@if (isset($sensors[$category->id][$build][$floor])) @foreach($sensors[$category->id][$build][$floor] as $sensor)
{{isset($lastRecordOfSensor[$sensor->tag]) ? $lastRecordOfSensor[$sensor->tag]->value : '無紀錄'}}
@endforeach @endif
@endforeach @endforeach @endforeach
@include('console.js.cardset')