{{-- Matriz Industria × Demo Filas = industrias, Columnas = demos. Celda: nº de cores + nº de variantes shop + indicador de misiles. --}} @push('styles') @endpush @php // helper para escala heatmap $heatLevel = function($variants) { if ($variants === 0) return 0; if ($variants <= 3) return 1; if ($variants <= 8) return 2; if ($variants <= 20) return 3; return 4; }; @endphp
| Industria \ Demo | @foreach($matrix['demos'] as $demo)
{{ $demo }}
{{ $matrix['totals']['by_demo'][$demo]['cores'] ?? 0 }} cores ·
{{ $matrix['totals']['by_demo'][$demo]['variants'] ?? 0 }} variantes
|
@endforeach
Σ | |
|---|---|---|---|
|
🏷 {{ $industry }}
{{ $matrix['totals']['by_industry'][$industry]['cores'] ?? 0 }} cores ·
{{ $matrix['totals']['by_industry'][$industry]['variants'] ?? 0 }} variantes
|
@foreach($matrix['demos'] as $demo)
@php
$cell = $matrix['cells'][$industry][$demo] ?? null;
$level = $heatLevel($cell['variants'] ?? 0);
@endphp
@if($cell && !empty($cell['cores']))
{{ count($cell['cores']) }}
{{ $cell['variants'] }}v
@if($cell['missiles'] > 0)
🎯{{ $cell['missiles'] }}
@endif
@foreach($cell['cores'] as $coreSlug)
{{ $coreSlug }}
@endforeach
|
@else
· | @endif @endforeach{{ $matrix['totals']['by_industry'][$industry]['variants'] ?? 0 }} |
| Σ | @foreach($matrix['demos'] as $demo){{ $matrix['totals']['by_demo'][$demo]['variants'] ?? 0 }} | @endforeach— |