@props(['product', 'bodegaCode' => null]) @php $inventoryEnabled = \App\Models\Setting::getByKey('inventory_enabled'); $showInventory = ($inventoryEnabled === '1' || $inventoryEnabled === 1 || $inventoryEnabled === true); @endphp
{{$product->sku}}
@endif @auth @php $available = $product->getInventoryForBodega($bodegaCode); @endphp @if($showInventory) @if($available <= 0)Producto no disponible para tu ubicación
@elseInventario: {{ $available }}
@endif @endif @else @php $mdtat = $product->getInventoryForMdtat(); @endphp @if($showInventory)Inventario (MDTAT): {{ $mdtat }}
@endif @endauth(Und. x) ${{ currency($product->final_price['perItemPrice']) }}
@endif