@extends('layouts.app') @section('og_title', $product->display_name) @section('og_description', Str::limit(strip_tags($product->description), 150)) @section('og_image', asset('uploads/products/' . $product->images[0]->image)) @section('og_type', 'product') @section('links') @vite('resources/css/productDetails.css') @endsection @section('content')
{{-- Product slider --}}
{{-- Notas: Miniaturas: 150-300px Principal: 800-1200px --}} {{-- Thumbs --}}
@foreach ($product->images as $image)
Producto
@endforeach
{{-- Main Image --}}
@foreach ($product->images as $image)
Producto
@endforeach

Modelo: {{ $product->model }}

Categorías: @if ($product->categories->count() > 0 || $product->subcategories->count() > 0) @foreach ($product->categories as $category) {{ $category->display_name }} @endforeach @foreach ($product->subcategories as $subcategory) {{ $subcategory->display_name }} @endforeach @else

--

@endif

Marca: {{ $product->brand->display_name }}

@isset($product->vendorUser) Ver mas productos de este vendedor @endisset @if (Auth::guard('admin')->check())

@if ($product->inventory->racks->count() > 0) Ubicacion del producto en el inventario:

    @foreach ($product->inventory->racks->unique('id') as $rack)
  • {{ $rack->location }} @if ($rack->rackBins->count() > 0)
      @foreach ($rack->rackBins()->where('iam_inventory_id', $product->inventory->id)->get() as $bin)
    • {{ $bin->bin_name }}
    • @endforeach
    @endif
  • @endforeach
@else No está ubicado el producto en el inventario @endif

@endif
@if ($product->video_link)
Video del producto

@endif @if ($product->datasheet)

Presiona para ver la ficha técnica del producto

@endif

{{ $product->display_name }}

{!! $product->description !!}


*Precios incluye IVA @if ($product->inventory->reserve)

{{ $product->inventory->stock == 0 ? '*Se puede reservar ' : '' }}(Tiempo de entrega: {{ $product->delivery_time }} dias aproximado)

@endif
@if ($product->instances->count() > 0)
@if ($product->type->id == 1 && !$product->iam_vendor_id) @endif @foreach ($product->instances->filter(fn($instance) => $instance->store->show) as $instance) @if ($product->type->id == 1 && !$product->iam_vendor_id) @endif @endforeach
UbicaciónNivel Precio Stock *
{{ $instance->store->store_name }} @if ($instance->free_shipping)

Disponible envío gratis

@endif
@foreach ($instance->attributes as $attrib) {{ $attrib->display_name }} @endforeach @if ($instance->offert) ${{ number_format($instance->price, 2, '.', ',') }} MXN
${{ number_format($instance->offert->discount_price, 2, '.', ',') }} MXN @else ${{ number_format($instance->price ?? $product->price, 2, '.', ',') }} MXN @endif
{{ $instance->stock != 0 ? $instance->stock : 'Sin stock disponible' }} @if ($instance->stock != 0)
@csrf
@else @endif
{{-- @auth @endauth --}}
@else

Pregunte por el producto con nosotros

@endif
Cuadro de niveles IM
@php $attributes = collect($product->instances) ->map(fn($instance) => $instance->attributes->first()) ->unique('display_name') ->sortBy('display_name'); @endphp @foreach ($attributes as $attribute) @endforeach
Nombre Descripcion
{{ $attribute->display_name }} {{ $attribute->description }}
@if ($referProducts->count() > 0)

Productos que podrian interesarte

@forelse ($referProducts as $key => $product) @if (!$product->draft)
Error al cargar el producto

{{ $product->display_name }}

{{ $product->model }}

@if ($product->offert) ${{ number_format($product->price, 2, '.', ',') }}

${{ number_format($product->offert->discount_price, 2, '.', ',') }} MXN

@else

${{ number_format($product->price, 2, '.', ',') }} MXN

@endif
@endif @empty

Hay un problema al mostrar los productos

@endforelse
@endif
@endsection @section('custom_script') @endsection