@if(!empty($assetHealth))

Asset Health Report

@if(!empty($assetHealth))
Asset Health
@endif @if(!empty($scannedAssets))
Scanned Assets
@endif
@foreach($categories as $category)
{{$category->category_name}}
@endforeach
Top Issues
@foreach($testReports as $categoryKey=>$test)
{{ucfirst($categoryKey)}}
@foreach($test as $testCount)

@if($testCount->test_count == 0) {{$testCount->test_count}} issues with @else {{$testCount->test_count}} issues with @endif {{$testCount->test_name}}

@endforeach
@endforeach
@foreach($testReports as $categoryKey=>$test) @foreach($test as $testCount) @if($testCount->test_count != 0)

{{$testCount->test_name}}

@if(array_key_exists($testCount->id,$testReportDetail)) @foreach($testReportDetail[$testCount->id] as $assets) @endforeach @endif
ID Asset Type Asset Tag # Serial # HW Standard Tech Specs User/Location Date Added
{{$loop->iteration}} {{$assets->assetType ? $assets->assetType->name : ""}} {{$assets->asset_tag}} {{$assets->serial_no}} {{$assets->makeAndModel ? $assets->makeAndModel->modelname : ""}} {{$assets->technicalSpec ? $assets->technicalSpec->details : ''}} {{$assets->user ? ($assets->user->first_name.$assets->user->last_name) : ($assets->location ? $assets->location->room_name : '')}} {{$assets->created_at}}
@endif @endforeach @endforeach
@endif