{{-- analysis/complements.blade.php --}} {{-- Complement analysis: consolidated quanti/analogy tables --}} {{-- Legacy: show_table_Complements() --}} @extends('layouts.app') @section('content') @include('components.analysis-nav', ['activeTab' => 'complements']) @include('components.analysis-filter', ['formAction' => route('kms.study.complements', $study->Id)]) {{-- Sub-type selector --}}
@if($normeId) @endif

@if(($complementData['sub'] ?? 'quanti') === 'quanti') {{-- Quanti complement --}} @foreach($complementData['products'] as $prodId => $row) @include('components.row', ['index' => $loop->index]) @endforeach
Produit N Moyenne Marais % Top %
{{ $row['product']['Name'] ?? "Produit {$prodId}" }} {{ $row['n'] }} @include('components.cell', ['type' => 'TWO_DECI', 'value' => $row['avg']]) {{ $row['marais_pct'] }}% {{ $row['top_pct'] }}%
@else {{-- Analogy complement (Portrait chinois profiles) --}} @foreach($complementData['products'] as $prodId => $row)

{{ $row['product']['Name'] ?? "Produit {$prodId}" }}

@foreach($row['profiles'] as $ct => $profile)

{{ $ct }}: @foreach($profile->dimensions as $dim => $val) {{ $dim }}={{ round($val * 100, 1) }}% @endforeach (N={{ $profile->count }})

@endforeach
@endforeach @endif @endsection