项目比对结果

@if($error)
{{ $error }}
@else

统计摘要

TXT文件总项目数: {{ $summary['txt_total'] }}
数据库总项目数: {{ $summary['db_total'] }}
仅TXT存在: {{ $summary['only_in_txt_count'] }}
仅数据库存在: {{ $summary['only_in_db_count'] }}
两者都存在: {{ $summary['in_both_count'] }}

仅TXT文件中存在的项目({{ count($onlyInTxt) }}项)

@foreach($onlyInTxt as $index => $name) @endforeach @if(empty($onlyInTxt)) @endif
序号 项目名称
{{ $index + 1 }} {{ $name }}
无数据

仅数据库中存在的项目({{ count($onlyInDb) }}项)

@foreach($onlyInDb as $index => $name) @endforeach @if(empty($onlyInDb)) @endif
序号 项目名称
{{ $index + 1 }} {{ $name }}
无数据

两者都存在的项目({{ count($inBoth) }}项)

@foreach($inBoth as $index => $item) @endforeach @if(empty($inBoth)) @endif
序号 项目名称 s_check_item ID 设备数量 设备ID TXT中的scheduleName
{{ $index + 1 }} {{ $item['name'] }} {{ $item['check_item_id'] ?: '-' }} {{ $item['device_count'] }} @if(!empty($item['device_ids']))
{{ implode(', ', $item['device_ids']) }} @if(count($item['device_ids']) > 3) 共 {{ count($item['device_ids']) }} 个设备ID @endif
@else - @endif
@if(!empty($item['schedule_names']))
{{ implode(', ', $item['schedule_names']) }} @if(count($item['schedule_names']) > 2) 共 {{ count($item['schedule_names']) }} 个地点 @endif
@else - @endif
无数据
@endif