@props(['product', 'currencyCode' => '']) @php $url = route('store.portal.product', ['tenant_slug' => request()->route('tenant_slug'), 'product' => $product['id']]); $cartLine = [ 'id' => $product['id'], 'name' => $product['name'], 'sale_price' => $product['sale_price'], 'vat_percent' => $product['vat_percent'] ?? 0, 'image_url' => $product['image_url'] ?? null, ]; $badge = null; if (!empty($product['is_bestseller'])) { $badge = 'الأكثر مبيعاً'; } elseif (!empty($product['is_trending'])) { $badge = 'رائج'; } elseif (!empty($product['is_featured'])) { $badge = 'مميز'; } elseif (($product['discount_percent'] ?? 0) > 0) { $badge = 'خصم '.$product['discount_percent'].'%'; } @endphp
{{ $product['name'] }} @if($badge) {{ $badge }} @endif @if(!empty($product['compare_at_price']) && $product['compare_at_price'] > $product['sale_price']) −{{ $product['discount_percent'] }}% @endif عرض التفاصيل
@if(($product['review_count'] ?? 0) > 0)
@for($i = 1; $i <= 5; $i++) @endfor ({{ $product['review_count'] }})
@endif {{ $product['name'] }}
{{ number_format($product['sale_price'], 2) }} {{ $currencyCode }} @if(!empty($product['compare_at_price']) && $product['compare_at_price'] > $product['sale_price']) {{ number_format($product['compare_at_price'], 2) }} @endif
@if($product['in_stock']) @else نفد @endif