@include('website.layouts.head') @include('website.layouts.header')
{{-- --}}
{{-- inicio prueba --}} {{-- fin prueba --}}
@if (!empty($products))
@if (!empty($json['prd_x_pag']))

Mostrando {{ $json['prd_x_pag'] }} de {{ $json['paginas'] }} páginas

@endif
Último Popularidad Precio bajo Precio alto
@foreach ($products as $item)
product
@csrf

{{ $item['nombre'] }}

N° PARTE: {{ $item['part_number'] }}
CONDICIÓN: {{ $item['condicion'] }}
@if ($item['existencias'] == 0 && $item['en_transito'] == 0) FUERA DE STOCK @php $out_stock = true; @endphp @else @php $out_stock = false; @endphp @if ($item['ETA'] > 0) DISPONIBILIDAD: @else EN STOCK: @endif @if ($item['en_transito'] != 0) Stock en tránsito @else @if ($item['existencias'] >= 300) 300+ @else {{ $item['existencias'] }} @endif PZA @endif @endif
DESCRIPCIÓN: {{ substr($item['desc'], 0, 40) . '...' }}
{{-- {{$out_stock}} --}} @if ($item['ETA'] <= 0) @if (!empty($out_stock) && $out_stock) @else EN STOCK @endif @else ETA: {{ $item['ETA'] }} DÍAS @endif
MOQ: {{ $item['MOQ'] }} UNIDADES
@if ($item['en_transito'] > 0) EN TRANSITO: {{ $item['en_transito'] }}
@endif @if (session('usuario_autenticado')) PRECIO: ${{ $item['precio'] }} +IGV @endif

@if ($item['MOQ'] == 0) @else @endif
@endforeach @else {{ $mensaje }} @endif
@include('website.layouts.button-back-to-top') @include('website.layouts.footer') @include('website.layouts.scripts') @include('website.layouts.refurbished')