@if($randomproduct && $randomproduct->images && $randomproduct->images->first())
@else
@endif
@if($randomproduct)
{{ app()->getLocale() == 'ar' ? $randomproduct->name_ar : $randomproduct->name }}
{{ app()->getLocale() == 'ar' ? $randomproduct->description_ar : $randomproduct->description }}
@else
{{-- Fallback text or empty if no product found --}}
{{ __("No product available") }}
@endif
{{ __('Popular Categories') }}
@forelse ($categories as $category)
@empty
@endforelse
{{ app()->getLocale() === 'ar' ? $category->name_ar : $category->name }}
{{ __('No categories found') }}
{{ app()->getLocale() === 'ar' ? $category->name_ar : $category->name }}
@forelse ($category->products as $product)
@empty
{{ app()->getLocale() === 'ar' ? $product->name_ar : $product->name }}
{{ app()->getLocale() === 'ar' ? 'دأ ' : 'JD' }}
@if($product->price_after_discount)
{{ $product->price }}
{{ $product->price_after_discount }}
@else
{{ $product->price }}
@endif
{{ __('No products found matching') }}
@endforelse