@extends('layouts.app') @section('titulo', 'Balance de comprobacion') @section('content')
| Codigo | Cuenta | Naturaleza | Debe | Haber | Saldo |
|---|---|---|---|---|---|
| {{ $fila['cuenta']->codigo }} | {{ $fila['cuenta']->nombre }} | {{ ucfirst($fila['cuenta']->naturaleza) }} | {{ number_format($fila['debe'], 2) }} | {{ number_format($fila['haber'], 2) }} | {{ number_format($fila['saldo'], 2) }} |
| Totales | {{ number_format($totales['debe'], 2) }} | {{ number_format($totales['haber'], 2) }} | @php $diferencia = round($totales['debe'] - $totales['haber'], 2) @endphp {{ $diferencia == 0 ? 'Cuadrado' : 'Diferencia: '.number_format($diferencia, 2) }} | ||