@extends('layouts.app') @section('title', 'Reporte de Ventas') @section('content')
| Nro Venta | Cliente | Fecha | Tipo | Producto | Cantidad | Precio Unitario | Subtotal | Recibo |
|---|---|---|---|---|---|---|---|---|
| {{ $venta->id }} | {{ $venta->cliente->nombre ?? 'Sin cliente' }} | {{ \Carbon\Carbon::parse($venta->fecha_venta)->format('d/m/Y') }} | {{ ucfirst($detalle->tipo_precio) }} | @endif{{ $detalle->nombre_producto ?? ($detalle->producto->nombre ?? 'Producto') }} | {{ $detalle->cantidad }} | Bs. {{ number_format($detalle->precio_unitario, 2) }} | Bs. {{ number_format($detalle->precio_unitario * $detalle->cantidad, 2) }} | @if ($index === 0)|
| No hay ventas registradas. | ||||||||