@php $contador = $totalDebe = $totalHaber = 0; @endphp @foreach($comprobantes as $cuenta) @php $totalDebe +=$cuenta->DEBE @endphp @php $totalHaber +=$cuenta->HABER @endphp @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 @endphp @php $siguiente_asiento++; @endphp @php $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' @endphp @php $anteriorCode = $actualCode @endphp @endif @endif @if($linea == 'linea' || $loop->first) {{-- --}} {{-- --}} @endif @endforeach
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: @if(!$cuenta->comentario) --- @else {{ $cuenta->comentario }} @endif Nro Asiento: {{ $siguiente_asiento }} - Periodo: {{ $cuenta->code }} - Fecha: {{ date("d/m/Y", strtotime($cuenta->fecha_registracion)) }} - Tipo Asiento: {{ $cuenta->tipo_asiento }} - Leyenda: @if(!$cuenta->comentario) --- @else {{ $cuenta->comentario }} @endif Nro Asiento: {{ $siguiente_asiento }} Periodo: {{ $cuenta->code }} Fecha: {{ date("d/m/Y", strtotime($cuenta->fecha_registracion)) }} Tipo Asiento: {{ $cuenta->tipo_asiento }} Leyenda: @if(!$cuenta->comentario) --- @else {{ $cuenta->comentario }} @endif
- {{ $cuenta->nombre }} {{ ($cuenta->DEBE>0) ? '$ '.number_format($cuenta->DEBE, 2, ',', '.') :''}} {{ ($cuenta->HABER>0) ? '$ '.number_format($cuenta->HABER, 2, ',', '.') :''}}