Productos del combo: {{ $item->combo }}
@csrf
@if (isset($item?->productos)) @if (count($item->productos) > 0) @php $total = 0; @endphp @foreach ($item->productos as $key => $i) @php $total = $i->pivot->precio_venta + $total; @endphp @php $url = 'default.png'; if ($i->imagen != null) { $url = $i->imagen; } @endphp @endforeach
# Codigo Producto Precio Precio Venta Categorias Imagen
{{ $key + 1 }} {{ $i->codigo }} {{ $i->producto }} {{ number_format($i->pivot->precio, 2) }} {{ number_format($i->pivot->precio_venta, 2) }} @foreach ($i->categorias as $categoria) {{ $categoria->categoria }} @endforeach
Total {{ number_format($total, 2) }}
@else
¡Opps! Parece que no tienes ningun precio registrado.
@endif @endif
Cerrar