@php $spent = $row->spent_amount; $planned = $row->planned_investment; $progress = $planned > 0 ? min(100, round(($spent / $planned) * 100, 1)) : 0; @endphp
{{ number_format($spent, 2) }} € @if($planned)
/ {{ number_format($planned, 2) }} € @endif