@forelse ($catalogs as $catalog)
@php
$fallback = asset('storage/defaults/catalog-default.png');
$imgPath = $catalog->image_path ? asset('storage/' . $catalog->image_path) : $fallback;
@endphp
{{ $catalog->name }}
{{ Str::limit($catalog->description, 80) }}
Rp {{ number_format($catalog->price, 0, ',', '.') }}
{{-- Tombol Favorit --}}
@auth
@php
$fav = $catalog->allFavorites->where('user_id', auth()->id())->first();
@endphp
@endauth