@php $widgetId = 'tasa-maiz-widget-' . str_replace('.', '-', $this->getId()); $formatNumber = static fn (float $value, int $decimals = 4): string => number_format($value, $decimals, ',', '.'); @endphp
@if (! $modelo)
No hay modelo disponible para calcular la tasa maiz.
@else
TASA MAIZ
Kg Producidos: {{ $formatNumber($kgProducidos, 2) }}
@foreach ($rows as $row) @endforeach
@if ($row['kind'] === 'info') {{ $formatNumber((float) $row['column2'], 2) }} @else {{ $formatNumber((float) $row['column2']) }} @endif @if ($row['kind'] === 'info') {{ $row['column3_label'] }} @else {{ $formatNumber((float) $row['column3']) }} @endif @if ($row['kind'] === 'info') {{ $row['column4_label'] }} @else @endif
Totales {{ $formatNumber($totals['column2'],2) }} {{ $formatNumber($totals['column3'],2) }} {{ $formatNumber($totals['column4'], 2) }}%
@endif