@props(['comparison' => null, 'label' => null]) {{-- One comparison table for every report: current, previous, change and its percent --}} @if ($comparison)
| {{ $heading }} | @endforeach||||
|---|---|---|---|---|
| {{ $row['metric'] }} | {{ rm_num($row['current'], 2) }} | {{ rm_num($row['previous'], 2) }} | {{ $row['positive'] ? '+' : '' }}{{ rm_num($row['delta'], 2) }} | @if ($row['percent'] === null) - @else {{ $row['positive'] ? '+' : '' }}{{ rm_num($row['percent'], 1) }}% @endif |