{{ $this->form }}
Aplicar filtros
@if($this->client) @php $running = $this->openingBalance; @endphp
{{ $this->client->name }} @if($this->client->tax_id) CUIT: {{ $this->client->tax_id }} @endif
Saldo inicial: ${{ number_format($this->openingBalance, 2, ',', '.') }}
@forelse($this->movements as $m) @php $running = round($running + (float)$m->debit - (float)$m->credit, 2); @endphp @empty @endforelse
Fecha Tipo Concepto Debe Haber Saldo
{{ $m->date->format('d/m/Y') }} {{ str_replace('_', ' ', $m->type) }} {{ $m->concept }} @if((float)$m->debit > 0) ${{ number_format((float)$m->debit, 2, ',', '.') }} @endif @if((float)$m->credit > 0) ${{ number_format((float)$m->credit, 2, ',', '.') }} @endif ${{ number_format($running, 2, ',', '.') }}
Sin movimientos en el período.
@else
Seleccioná un cliente para ver su cuenta corriente.
@endif