{{-- Legend for the trading network in a PDF. Shared by stats/pdf.blade.php and reports/pdf.blade.php so the two exports cannot drift apart. Expects $networkLegend, the result of networkLegend() on either Livewire component. Inline styles rather than classes: dompdf does not load the stylesheet, and a table rather than flex because dompdf ignores flex and gap. --}} @if (!empty($networkLegend)) @if (!empty($networkLegend['view_hint']))
{{ $networkLegend['view_label'] ?? '' }}: {{ $networkLegend['view_hint'] }}
@endif
{{ __('Colour') }}: {{ $networkLegend['color_meaning'] }}
@if (!empty($networkLegend['colors']))
@foreach ($networkLegend['colors'] as $item) {{ $item['label'] }} @endforeach
@endif @if (!empty($networkLegend['node_styles']))
@foreach ($networkLegend['node_styles'] as $style) {{ $style['label'] }} @endforeach
@endif
{{ __('Dot size') }}
{{ $networkLegend['size_meaning'] }}
{{ __('Line thickness') }}
{{ $networkLegend['width_meaning'] }}
@if (!empty($networkLegend['directions']))
@foreach ($networkLegend['directions'] as $dir) {{ $dir['label'] }} @endforeach
@endif
@endif