@foreach ($asientosAgrupados as $cuenta => $asientos)
{{ $cuenta }}
DEBE |
HABER |
@php
$totalDebe = 0;
$totalHaber = 0;
@endphp
@foreach ($asientos as $asiento)
{{ $asiento->debe }} |
{{ $asiento->haber }} |
@php
$totalDebe += $asiento->debe;
$totalHaber += $asiento->haber;
@endphp
@endforeach
Total Debe |
Total Haber |
{{ $totalDebe }} |
{{ $totalHaber }} |
Resultado: {{ abs($totalDebe - $totalHaber) }}
@endforeach