@php $delta = function ($now, $before) { if (! $before) return null; return round(($now - $before) / $before * 100, 1); }; $max = max(1, collect($series)->max('revenue')); $colourMax = max(1, (int) $colours->max('revenue')); $sourceTotal = max(1, array_sum($customers['sources'])); @endphp
No paid orders in this period.
@elseNo colour sales in this period.
@endforelse