@extends('layouts.page') @section('head') @include('elements.seo', [ 'title'=>$product->name, 'description'=> $product->sort_description ]) @endsection @section('content')
@if($product->images->first()) {{ $product->name }} @endif
    @foreach ($product->images as $index => $image)
  • {{ $product->name }}
  • @endforeach
@csrf

{{$product->name}}

@if($product->sku)

{{$product->sku}}

@endif @php $inventoryEnabled = \App\Models\Setting::getByKey('inventory_enabled'); $showInventory = ($inventoryEnabled === '1' || $inventoryEnabled === 1 || $inventoryEnabled === true); $isManaged = $product->isInventoryManaged(); // Use orderable stock (available - safety) for client-facing display $orderableStock = auth()->check() ? $product->getOrderableStockForBodega($bodegaCode ?? null) : $product->getOrderableStockForMdtat(); @endphp @auth @if($showInventory && $isManaged && $orderableStock <= 0)

Producto no disponible para tu ubicación

@elseif($showInventory && $isManaged && $orderableStock < 10 && $orderableStock > 0) últimas unidades disponibles @endif @else @if($showInventory && $isManaged && $orderableStock <= 0)

Producto no disponible para tu ubicación

@endif @endauth @if($product->short_description)

{{ $product->short_description }}

@endif
${{ 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
@if($product->brand)

{{$product->brand->name}}

@endif @if($product->category)

{{$product->category->name}}

@endif
@if ($product->variation && $product->items->count())
{{ $product->variation->name }}:
@endif
@php $vacationInfo = \App\Models\Setting::getVacationModeInfo(); $isVacationMode = $vacationInfo['active']; $formattedVacationDate = $vacationInfo['formatted_date'] ?? 'pronto'; @endphp
@if($isVacationMode)

Tuti está de vacaciones. Te esperamos nuevamente {{ $formattedVacationDate }}. ¡Gracias!

@endif @php $hasPdf = !empty($product->specifications_pdf); @endphp
@if($hasPdf)
Ficha Tecnica
@else
Ficha Tecnica
@endif
@php $hasDetails = $product->description || $product->technical_specifications || $product->warranty || $product->other_information; @endphp @if($hasDetails)
@if($product->description)
{!! $product->description !!}
@endif @if($product->technical_specifications)
@endif @if($product->warranty)
@endif @if($product->other_information)
@endif
@endif @if($related->count())

Complementa tu compra

@endif @if(count($intermedio) > 0 || count($lateral) > 0)
@if(count($intermedio) > 0)
    @foreach ($intermedio as $banner)
  • @endforeach
@endif @if(count($lateral) > 0)
    @foreach ($lateral as $banner)
  • @endforeach
@endif
@endif
@endsection @section('scripts') @endsection