@if ($edit == 1) @endif
@include('producto.combo.producto')
@if ($producto) @if (count($producto->tiposPrecios) > 0 && count($producto->categorias) > 0)
¿Desea Agregar el producto al combo?
@csrf @if ($edit == 1) @endif
@else
¡Opps! No se puede agregar el producto porque no tiene categorias o precios asociados
@endif @endif
@if ($validate)
¡Opps! El combo no se puede editar porque ya se esta utilizando en una cotización. clic para ver la cotización {{ $validateCombo->codigo_cotizacion }}
@endif @if (isset($data->productos)) @if (count($data->productos) > 0) @foreach ($data->productos as $key => $item) @php $url = 'default.png'; if ($item->imagen != null) { $url = $item->imagen; } @endphp @endforeach
# Codigo Producto Precio Venta Categorias Imagen Estado Eliminar
{{ $key + 1 }} {{ $item->codigo }} {{ $item->producto }} {{ number_format($item->pivot->precio_venta, 2) }} @foreach ($item->categorias as $categoria) {{ $categoria->categoria }} @endforeach @if ($item->pivot->estado == true) @if ($validate) @else Activo @endif @else @if ($validate) @else Desactivo @endif @endif @if ($validate) @else @endif
@else
¡Opps! Parece que no tienes ningun precio registrado.
@endif @endif