@php
$item_label = DB::table('labels')->where('id', $product->label_id)->first();
$label = $item_label->name ?? null;
$color = $item_label->color ?? null;
@endphp
{{ $product->title }} {{ $label }}
@php
$avgreview = \App\Models\User\UserItemReview::where('item_id', $item_id)->avg('review');
@endphp
@if ($shop_settings->item_rating_system == 1)
{{ number_format($avgreview, 1) }}
({{ reviewCount($product->item->id) }}
@php
$review = $keywords['Review'] ?? __('Review');
$reviews = $keywords['Reviews'] ?? __('Reviews');
@endphp
{{ reviewCount($product->item->id) == 1 ? $review : $reviews }})
@endif
@if ($product->item->type == 'physical')
@php
$varitaion_stock = VariationStock($product->item->id);
@endphp
@if ($varitaion_stock['has_variation'] == 'yes')
@if ($varitaion_stock['stock'] == 'yes')
{{ $keywords['In Stock'] ?? __('In Stock') }}
@else
{{ $keywords['Out of Stock'] ?? __('Out of Stock') }}
@endif
@else
@if ($product->item->stock > 0)
{{ $keywords['In Stock'] ?? __('In Stock') }}
@else
{{ $keywords['Out of Stock'] ?? __('Out of Stock') }}
@endif
@endif
@endif
@php
$flash_info = flashAmountStatus($item_id, $product->item->current_price);
$product_current_price = $flash_info['amount'];
$flash_status = $flash_info['status'];
@endphp
@if ($flash_status == true)
{{ $userCurrentCurr->symbol_position == 'left' ? $userCurrentCurr->symbol : '' }}
{{ currency_converter($product_current_price) }}
{{ $userCurrentCurr->symbol_position == 'right' ? $userCurrentCurr->symbol : '' }}
{{ $userCurrentCurr->symbol_position == 'left' ? $userCurrentCurr->symbol : '' }}
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product->item->current_price)) }}
{{ $userCurrentCurr->symbol_position == 'right' ? $userCurrentCurr->symbol : '' }}
{{ $product->item->flash_amount }}% {{ $keywords['OFF'] ?? __('OFF') }}
@else
{{ $userCurrentCurr->symbol_position == 'left' ? $userCurrentCurr->symbol : '' }}
{{ currency_converter($product->item->current_price) }}
{{ $userCurrentCurr->symbol_position == 'right' ? $userCurrentCurr->symbol : '' }}
@if ($product->item->previous_price > 0)
{{ $userCurrentCurr->symbol_position == 'left' ? $userCurrentCurr->symbol : '' }}
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product->item->previous_price)) }}
{{ $userCurrentCurr->symbol_position == 'right' ? $userCurrentCurr->symbol : '' }}
@endif
@endif
{{ $product->summary }}
{{ $keywords['SKU'] ?? __('SKU') }}:
{{ $product->item->sku }}
@if ($flash_status == true)
{{ $keywords['Days'] ?? __('Days') }}
{{ $keywords['Hours'] ?? __('Hours') }}
{{ $keywords['Mins'] ?? __('Mins') }}
{{ $keywords['Sec'] ?? __('Sec') }}
{{ $product->item->flash_amount }}%
@endif
@if (count($product_variations) > 0)
@php
$seen_qv_variations = [];
@endphp
@foreach ($product_variations as $product_variation)
@php
$product_variation_content = App\Models\User\ProductVariationContent::where([
['product_variation_id', $product_variation->id],
['language_id', $uLang],
])->first();
if (!$product_variation_content) {
$product_variation_content = App\Models\User\ProductVariationContent::where('product_variation_id', $product_variation->id)->first();
}
$vTitle = function_exists('resolveProductVariationTitle')
? resolveProductVariationTitle($product_variation, $product_variation_content, $uLang, $loop->iteration)
: ($product_variation_content?->variation_name ?? ('Option ' . $loop->iteration));
if (isset($seen_qv_variations[$vTitle])) {
continue;
}
$seen_qv_variations[$vTitle] = true;
$variant_content_options = App\Models\User\ProductVariantOption::where([
['product_variation_id', $product_variation->id],
])->get();
@endphp
@if (count($variant_content_options) > 0)
-
{{ $vTitle }}:
@endif
@endforeach
@endif
@if ($shop_settings->catalog_mode != 1)
@php
$customer_id = Auth::guard('customer')->check() ? Auth::guard('customer')->user()->id : null;
$checkWishList = $customer_id ? checkWishList($product->item_id, $customer_id) : false;
@endphp
{{ $keywords['Share Now'] ?? __('Share Now') }} :
@endif