@extends('layouts/layout') @section('content')
@foreach ($categories as $category) @endforeach
@foreach ($categories as $category) @if (!in_array($category->id, [9, 10])) @endif @endforeach
@foreach ($products as $product)
@php $productImages = $product->images->pluck('image_path')->toArray(); $mainImage = $productImages[0] ?? 'images/no-image.png'; $hoverImage = $productImages[1] ?? $mainImage; // fallback if only 1 image @endphp Product
@endforeach

Boutique Looks in Action

@foreach($products as $product) @if(!empty($product->product_video) && \Storage::disk('public')->exists($product->product_video))
{{ $product->name }}
@endif @endforeach
@endsection