@php $totalMontoInicial = 0; $totalPago = 0; $totalDescuento = 0; $totalSaldo = 0; @endphp @foreach($items as $k => $item) @php $totalMontoInicial += $item->monto_inicial; $totalPago += $item->pago; $totalDescuento += $item->descuento; $totalSaldo += $item->saldo; @endphp @if ($item->monto_inicial > 0) @endif @endforeach
Concepto Valor Pago Descuento Saldo Fecha Cancelacion Estado
  Periodo Dias Tasa            
TOTAL {{ \App\Helper\ViewerHelper::formatNumber($totalMontoInicial) }} {{ \App\Helper\ViewerHelper::formatNumber($totalPago) }} {{ \App\Helper\ViewerHelper::formatNumber($totalDescuento) }} {{ \App\Helper\ViewerHelper::formatNumber($totalSaldo) }}