@php $fmt = function ($n) { return number_format($n, 2, ',', '.'); }; $totalPaginas = count($paginas); @endphp @foreach($paginas as $idx => $pagina) @php $esUltima = ($idx === $totalPaginas - 1) && !empty($mostrar_totales); $hoja = $hoja_inicial + $idx; @endphp
@if($pagina['transporte_inicio']) @endif @foreach($pagina['lineas'] as $l) @if($l['tipo'] === 'sep') @elseif($l['tipo'] === 'asiento') @else @endif @endforeach @if($esUltima) @else @endif
{{ $person_current->field_name1 }} - CUIT: {{ $person_current->document }} Hoja: {{ $hoja }}
{{ $periodo_texto }}
Libro Diario
NĂºmeroFechaConcepto
DEBEHABER
CuentaImporteCuentaImporte
Transporte: {{ $fmt($pagina['transporte_inicio']['debe']) }} {{ $fmt($pagina['transporte_inicio']['haber']) }}
{{ $l['numero'] }} {{ $l['fecha'] }} {{ $l['concepto'] }}
{{ $l['debe']['codigo'] ?? '' }} {{ $l['debe']['nombre'] ?? '' }} {{ isset($l['debe']) ? $fmt($l['debe']['importe']) : '' }} {{ $l['haber']['codigo'] ?? '' }} {{ $l['haber']['nombre'] ?? '' }} {{ isset($l['haber']) ? $fmt($l['haber']['importe']) : '' }}
Totales: {{ $fmt($total_debe) }} {{ $fmt($total_haber) }}
Transporte: {{ $fmt($pagina['transporte_fin']['debe']) }} {{ $fmt($pagina['transporte_fin']['haber']) }}
@endforeach