@php $spent = $row->spent_amount; $planned = $row->planned_investment; $progress = $planned > 0 ? min(100, round(($spent / $planned) * 100, 1)) : 0; @endphp