@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', $product->item->id)->avg('review');
@endphp
@if ($shop_settings->item_rating_system == 1)
{{ number_format($avgreview, 1) }}
({{ reviewCount($product->item->id) }}
{{ reviewCount($product->item->id) == 1 ? $keywords['Review'] ?? __('Review') : $keywords['Reviews'] ?? __('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($product->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 : '' }}
{{ 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 : '' }}
{{ currency_converter($product->item->previous_price) }}
{{ $userCurrentCurr->symbol_position == 'right' ? $userCurrentCurr->symbol : '' }}
@endif
@endif
{{ $product->summary }}
@if ($product->item->sku)
{{ $keywords['SKU'] ?? __('SKU') }} :
{{ $product->item->sku }}
@endif
@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_detail_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_detail_variations[$vTitle])) {
continue;
}
$seen_detail_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
-
@endforeach{{ !empty(convertUtf8(@$review->customer)) ? convertUtf8(@$review->customer->username) : '' }} ( {{ @$review->created_at->format('F j, Y') }} )
{{ nl2br(convertUtf8(@$review->comment)) }}