@if($withPhoto) Imagen @endif Código Nombre @if($with_reference == true) Referencia @endif {{-- Precio Compra --}} Precio Venta @if (!$withoutStock) Stock @endif @if($column_colors == 1) Color @endif @if($column_sizes == 1) Tamaño @endif @foreach($products as $key => $product) @if($withPhoto) @endif {{ $product['code'] }} {{ $product['name'] }} @if($with_reference == true) {{ $product['reference'] }} @endif {{-- @if ($currency == \App\Models\Currency::BOLIVAR) {{ Money::get(Money::convertFrom($product['purchase_price'],$conversion),Money::BOLIVAR) }} @else {{ Money::get($product['purchase_price'],Money::DOLAR) }} @endif --}} @if ($currency == \App\Models\Currency::BOLIVAR) {{ Money::get(Money::convertFrom($product['price'],$conversion),Money::BOLIVAR) }} @else {{ Money::get($product['price'],Money::DOLAR) }} @endif @if (!$withoutStock) {{-- {{ isset($product['stock_acumulado']) ? $product['stock_acumulado'] > 0 ? $product['stock_acumulado'] : $product['stock'] : $product['stock'] }} --}} {{ isset($product['stock_warehouse']) && $product['stock_warehouse'] !== null ? $product['stock_warehouse'] : ($product['stock_acumulado'] > 0 ? $product['stock_acumulado'] : $product['stock']) }} @endif @if($column_colors == 1) {{ $product['color'] ? $product['color'] : '-' }} @endif @if($column_sizes == 1) {{ $product['size'] ? $product['size'] : '-' }} @endif @endforeach