Proyectos de asiento



@php // Mapa de tipos $tipos = [ 0 => 'Activo', 1 => 'Pasivo', 2 => 'Capital', 3 => 'Ingreso', 4 => 'Gasto', ]; $totaldebe = 0; $totalhaber = 0; @endphp @foreach ($data as $index => $item) @php $totaldebe += $item->debe; $totalhaber += $item->haber; @endphp @endforeach
IDFechaTipoCuentaDebeHaberDescripción
{{ $index + 1 }} {{ $item->fecha }} {{ $tipos[$item->tipo] ?? 'Desconocido' }} {{ $item->cuenta }} {{ $item->debe }} {{ $item->haber }} {{ $item->descripcion }}
Total:{{ $totaldebe }}{{ $totalhaber }}
Showing 1 to 1 of 1 entry
@csrf