@props(['product', 'bodegaCode' => null]) @php $inventoryEnabled = \App\Models\Setting::getByKey('inventory_enabled'); $showInventory = ($inventoryEnabled === '1' || $inventoryEnabled === 1 || $inventoryEnabled === true); @endphp
@if($product->images->first()) @else @endif
{{$product->name}} @if($product->sku)

{{$product->sku}}

@endif @auth @php $available = $product->getInventoryForBodega($bodegaCode); @endphp @if($showInventory) @if($available <= 0)

Producto no disponible para tu ubicación

@else

Inventario: {{ $available }}

@endif @endif @else @php $mdtat = $product->getInventoryForMdtat(); @endphp @if($showInventory)

Inventario (MDTAT): {{ $mdtat }}

@endif @endauth
${{ currency($product->final_price['price']) }} @if($product->final_price['has_discount']) ${{ currency($product->final_price['old']) }} @endif
@if($product->final_price['perItemPrice'])

(Und. x) ${{ currency($product->final_price['perItemPrice']) }}

@endif
¡Lo quiero!