@php $folioActual = $folioInicial; @endphp
{{ $empresa->nomEmpresa ?? 'EMPRESA CONTABLE' }}
NIT: {{ $empresa->nit ?? 'N/A' }} | REGISTRO MERCANTIL CÁMARA DE COMERCIO
Sucursal / Establecimiento: {{ $bodegaNombre }}
LIBRO MAYOR Y BALANCES
FOLIO No. {{ str_pad($folioActual, 6, '0', STR_PAD_LEFT) }}
LIBRO OFICIAL DE MAYOR Y BALANCE — PERÍODO COMPRENDIDO DEL {{ date('d/m/Y', strtotime($fi)) }} AL {{ date('d/m/Y', strtotime($ff)) }}
@php $sumDeb = 0; $sumCre = 0; @endphp @foreach($balance as $item) @php $len = strlen($item->cuentaNum); $esClase = ($len == 1); $esGrupo = ($len == 2); if ($item->t == 'Auxiliar' || $len >= 4) { $sumDeb += $item->debito; $sumCre += $item->credito; } @endphp @endforeach
CUENTA NOMBRE DE LA CUENTA / CONCEPTO SALDO ANTERIOR MOV. DÉBITO MOV. CRÉDITO SALDO FINAL
{{ $item->cuentaNum }} {{ $item->NombreCuenta }} {{ number_format($item->saldo_inicial, 2, ',', '.') }} {{ $item->debito > 0 ? number_format($item->debito, 2, ',', '.') : '-' }} {{ $item->credito > 0 ? number_format($item->credito, 2, ',', '.') : '-' }} {{ number_format($item->saldo_final, 2, ',', '.') }}
REPRESENTANTE LEGAL
{{ $representanteNombre ?: ($empresa->nombreRepre ?? 'C.C. ___________________') }}
CONTADOR PÚBLICO
{{ $contadorNombre ?: 'NOMBRE CONTADOR' }} | T.P. {{ $contadorTP ?: '________-T' }}
REVISOR FISCAL / AUDITOR
{{ $revisorNombre ?: 'NOMBRE REVISOR' }} | T.P. {{ $revisorTP ?: '________-T' }}