@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif
Buscador ventas históricas por fecha
Ventas por fecha
@if(count($ventas)) @foreach($ventas as $sale) @endforeach
# Fecha Venta Fecha Ingreso Rut Cliente Usuario Tipo Venta Forma Pago Total Acción
{{$sale->venta}} {{$sale->fecha}} {{$sale->ingreso}} {{$sale->rut}} {{$sale->nombre}} {{$sale->usuario->name ?? 'N/A'}} {{$sale->tipo}} {{$sale->medios_pago}} {{Currency::currency("CLP")->format(round($sale->total))}} venta])}}"> PDF
@else
@endif
Totales por forma de pago
@forelse ($pagos as $item)
{{$item->nombre}} {{Currency::currency("CLP")->format(round($item->total))}}
@empty
@endforelse
TOTAL REEMBOLSOS {{Currency::currency("CLP")->format(round($totalReembolsos))}}
TOTAL CAMBIOS {{Currency::currency("CLP")->format(round($totalCambio))}}
CANTIDAD VENTAS {{$tventas}}
CANTIDAD PRODUCTOS {{$tdetalle}}
TOTAL {{Currency::currency("CLP")->format(round(($total_fecha + $totalCambio) - $totalReembolsos))}}
@if(count($ventas))
El total corresponde a la suma de ventas y cambios, descontando los reembolsos.
@endif
@forelse($ventasPorUsuario as $item) @php $user = $usuarios[$item->user_id] ?? null; @endphp @empty @endforelse
Usuario Cantidad Total
{{ $user ? $user->name : 'Sin usuario' }} {{ $item->cantidad_ventas }} {{ Currency::currency("CLP")->format(round($item->total_ventas)) }}
No hay ventas por usuario en el rango seleccionado.
@push('scripts') @endpush