Total venta
$ {{Number_format($venta->total)}}
Costo de producción
$ {{Number_format($venta->costo())}}
Ganancias aproximadas
$ {{Number_format($venta->ganancia())}}
Detalles de venta
ID: #{{$venta->id}}
@if($venta->id_cierre != null)
@endif
@if($venta->id_mesa != null)
@endif
@if($venta->id_cupon != null)
@if($venta->tipo_descuento == '2')
@php
$porcentaje = $venta->descuento * 100 / $venta->total_real;
@endphp
@endif
@endif
Productos vendidos
| ID | Producto | Precio | Cantidad | Descuento | Total | @if(Auth::user()->is_admin == 'Si')Costo producción | Ganancia Aprox | @endifAcciones |
|---|---|---|---|---|---|---|---|---|
| #{{$detalle->id_producto != 0 ? $detalle->producto->id : 'CUSTOM'}} |
@if($detalle->id_producto != 0)
@endif
@if($detalle->id_producto != 0)
{{$detalle->producto->nombre}}@else{{$detalle->concepto}}@endif |
@if($detalle->id_producto != 0) $ {{number_format($detalle->producto->precio_final)}} @else $ {{number_format($detalle->total)}} @endif | {{$detalle->cantidad}} | @if($detalle->descuento > 0 && $detalle->descuento != null && $detalle->descuento != 'null') - {{$detalle->getDescuento()}} @else N/A @endif | $ {{number_format($detalle->total)}} | @if(Auth::user()->is_admin == 'Si')$ {{number_format($detalle->costo)}} | $ {{number_format($detalle->total - $detalle->costo)}} | @endif@if($detalle->id_producto != 0) @else N/A @endif |
@endif