@php $anterior = null; $anteriorCode = null; $lineaCode = ''; @endphp @foreach($comprobantes as $cuenta) @if ($loop->first) @php $anterior = $cuenta->balance_libro_id; @endphp @endif @php $actual = $cuenta->balance_libro_id; @endphp @if ($anterior == $actual) @php $linea = ''; @endphp @else @php $anterior = $actual; $siguiente_asiento++; $linea = 'linea'; @endphp @endif @if ($agrupacion == 2) @php $actualCode = $cuenta->code; @endphp @if ($loop->first) @php $anteriorCode = $cuenta->code; @endphp @endif @if ($anteriorCode == $actualCode) @php $lineaCode = ''; @endphp @else @php $lineaCode = 'lineaCode'; $anteriorCode = $actualCode; @endphp @endif @endif @if($linea == 'linea' || $loop->first) @endif @endforeach @if(!empty($mostrar_totales)) @endif
Libro Diario - {{ $person_current->field_name1 }} - CUIT: {{ $person_current->document }}
CUENTA DEBE HABER
Nro Asiento: {{ $siguiente_asiento }} - Periodo: {{ $cuenta->code }} - Fecha: {{ date("d/m/Y", strtotime($cuenta->fecha_registracion)) }} - Tipo Asiento: {{ $cuenta->tipo_asiento }} - Leyenda: {{ $cuenta->comentario ?: '---' }}
- {{ $cuenta->nombre }} {{ ($cuenta->DEBE > 0) ? '$ '.number_format($cuenta->DEBE, 2, ',', '.') : '' }} {{ ($cuenta->HABER > 0) ? '$ '.number_format($cuenta->HABER, 2, ',', '.') : '' }}