@extends('layout') @section('content')

CIERRE DE CAJA

Seleccionar día y completar campos.
@csrf

Totales cálculados

@php $total = $pagos['efectivo'] + $pagos['tarjeta'] + $pagos['transferencia'] @endphp @php $total = $pagos['efectivo'] + $saldo_inicial - $gasto_total; @endphp @if($total >= 0) @else @endif
Forma de pago Confirmar montos
Efectivo ({{ $cantidad['efectivo'] }}) ${{ number_format($pagos['efectivo'],0,'.','.') }}
Tarjeta ({{ $cantidad['tarjeta'] }}) ${{ number_format($pagos['tarjeta'],0,'.','.') }}
Transferencia ({{ $cantidad['transferencia'] }}) ${{ number_format($pagos['transferencia'],0,'.','.') }}
TOTAL VENTAS${{ number_format($total,0,'.','.') }}
Saldo inicial
Último cierre: {{ $fecha_inicial }}
Gastos -${{ number_format($gasto_total,0,'.','.') }}
SALDO CAJA CALCULADO
(Saldo inicial + efectivo - Gastos)
${{ number_format($total,0,'.','.') }}-${{ number_format($total * -1,0,'.','.') }}
SALDO CAJA REAL
RETIRO
SALDO FINAL --

Gastos

@if(count($gastos) > 0) @foreach($gastos as $g) @endforeach @else @endif
ITEM MONTO
{{ $g->item }}
${{ number_format($g->monto,0,'.','.') }}

No se han registrado gastos en la fecha del cierre.


Resumen de ventas

DOCUMENTO CLIENTE FECHA FORMA PAGO MONTO
@endsection @push('scripts') @endpush