{{ $product->title }}

{{ $product->title_en }}


@if ($product->rating)

{{ $product->rating }}

({{ $product->reviews_count }})

{{ trans('front::messages.products.review') }} {{ $product->reviews_count }}

{{ trans('front::messages.products.comment-count') }} {{ $product->comments()->accepted()->count() }}

@endif @if ($product->suggestionCount())

{{ $product->suggestionPercent() }}%({{ $product->suggestionCount() }}) نفر از خریداران این کالا را پیشنهاد کردن

@endif
@if ($product->short_description)

{!! nl2br($product->short_description) !!}

@endif @php $specialSpecifications = $product->specialSpecifications(); @endphp @if ($specialSpecifications->count())
    @foreach ($specialSpecifications as $specification)
  • {{ $specification->name }}: {{ $specification->pivot->value }}
  • @endforeach
@if ($specialSpecifications->count() > 2)
{{ trans('front::messages.products.more-items') }} {{ trans('front::messages.products.to-close') }}
@endif
@endif @if ($product->brand)
{{ trans('front::messages.products.brand') }}: {{ $product->brand->name }}
@endif @if ($product->sizeType) @endif
@if ($product->labels->count())
@foreach ($product->labels as $label) {{ $label->title }} @endforeach
@endif @if ($product->isPhysical())
@if ($product->getPrices->count()) @php $prev_attribute = null; $groups = null; $attributes_id = []; $group_loop = 0; @endphp @foreach ($attributeGroups as $attributeGroup) @if ($product->get_attributes($attributeGroup, $prev_attribute, $groups, $attributes_id)) @php $checked = false; $group_checked = false; $prev_selected_attr = $attributes_id; @endphp

{{ $attributeGroup->name }}:

    @foreach ($product->get_attributes($attributeGroup, $prev_attribute, $groups, $attributes_id) as $attribute) @php if ($group_loop != 0 && count($prev_selected_attr)) { $has_stock = $product->hasAttributeStock($attribute, $prev_selected_attr); } else { $has_stock = $product->hasAttributeStock($attribute); } if ($selected_price->get_attributes()->find($attribute->id)) { $checked = true; $prev_attribute = $attribute; $attributes_id[] = $attribute->id; $group_checked = true; } else { $checked = false; } if ($loop->last && $checked == false && $group_checked == false) { $checked = true; $prev_attribute = $attribute; $attributes_id[] = $attribute->id; } @endphp
  • @endforeach
@php $groups[] = $attributeGroup; $group_loop++; @endphp @endif @endforeach @php $selected_price = $product->getPriceWithAttributes($attributes_id); @endphp @endif
@if ($product->addableToCart())
{{ $product->getUnit() }}
{{ trans('front::messages.products.price') }}
@if ($selected_price->hasDiscount()) {{ number_format($selected_price->regularPrice()) }}
{{ $selected_price->discount() }}%
@endif
{{ trans('front::messages.currency.prefix') }} {{ number_format($selected_price->salePrice()) }} {{ trans('front::messages.currency.suffix') }}
@elseif (!$product->addableToCart())
{{ trans('front::messages.products.unavailable') }}

{{ trans('front::messages.products.text-unavailable') }}

@endif
@endif