@include('livewire.front.modals') @section('title', 'INICIO')
@if (Auth::check()) @else @endif

Nuestros productos

@foreach ($productos->where('status', 1) as $product)
{{ $product->name }}

{{ $product->categoria->name }}

{{ money($product->price) }}

@endforeach

Nuestros productos recientes

@foreach ($recent_products as $product)
{{ $product->name }}

{{ $product->categoria->name }}

{{ money($product->price) }}

@endforeach

Nuestros productos más vendidos

@foreach ($best_selling_qty->take(9) as $item)
{{ $item->producto->name }}

{{ $item->cantidad }}

@if (Auth::check())
@if (DB::table('wishlists')->where('producto_id', $item->producto->id)->where('user_id', Auth::user()->id)->first() != null) @else @endif
@else @endif
@endforeach