{{@$product->gallery->first()->image}}
@php $seller = $product->seller; @endphp
@foreach($product->gallery as $gallery) @endforeach

{{($product->name)}}

@php echo show_ratings($product->rating()->avg('rating')) @endphp ({{$product->rating()->count()}} {{translate('Reviews')}})
{{$product->order->count()}} {{translate("Orders")}}
@php $price = (@$product->stock->first()?->price ?? $product->price); @endphp @if(count($product->campaigns) != 0 && $product->campaigns->first()->end_time > Carbon\Carbon::now()->toDateTimeString() && $product->campaigns->first()->status == '1') @if(($product->campaigns->first()->pivot->discount) == 0) {{(short_amount($price ))}} @else {{(short_amount(discount($price,$product->campaigns->first()->pivot->discount,$product->campaigns->first()->pivot->discount_type)))}} {{(short_amount($price))}} @endif @else @if(($product->discount_percentage) > 0) {{short_amount(cal_discount($product->discount_percentage, $price))}} {{short_amount($price)}} @else {{short_amount($price)}} @endif @endif
@if($product->taxes)
    @forelse ($product->taxes as $tax )
  • {{$tax->name}} : @if($tax->pivot->type == 0) {{$tax->pivot->amount}}% @else {{short_amount($tax->pivot->amount)}} @endif
  • @empty
  • {{translate("Nothing tax configuration added for this product")}}
  • @endforelse
@endif
@php echo $product->short_description @endphp
@php $randNum = rand(5,99999999); $randNum = $randNum."details".$randNum; @endphp
@if(count($product->campaigns) != 0 && $product->campaigns->first()->end_time > Carbon\Carbon::now()->toDateTimeString() && $product->campaigns->first()->status == '1') @endif @foreach (json_decode($product->attributes_value) as $key => $attr_val) @php $attributeOption = get_cached_attributes()->find($attr_val->attribute_id); $attributValues = @$attributeOption->value; @endphp
{{ $attributeOption->name }}:
@foreach ($attr_val->values as $key => $value) @php $displayName = $value; if($attributValues){ $attributeValue = $attributValues->where('name',$value)->first(); if($attributeValue){ $displayName = $attributeValue->display_name ? $attributeValue->display_name : $attributeValue->name; } } @endphp
@endforeach
@endforeach
{{translate('Weight')}} : {{$product->weight}} {{translate('KG')}}
@php $stockQty = (int) @$product->stock->first()->qty ?? 0; @endphp
@if($stockQty > 0)

{{translate("In Stock")}}

@else

{{translate("Stock out")}}

@endif
@php $authUser = auth_user('web'); $wishedProducts = $authUser ? $authUser->wishlist->pluck('product_id')->toArray() : []; @endphp
{{translate("Buy Now")}} @if(site_settings('whatsapp_order',App\Enums\StatusEnum::false->status()) == App\Enums\StatusEnum::true->status() ) @php $wpMessage = site_settings('wp_order_message'); $message = str_replace( [ '[product_name]', '[link]', ], [ $product->name, route('product.details',[$product->slug ? $product->slug : make_slug($product->name),$product->id]) ], $wpMessage); @endphp @if($seller && optional($seller->sellerShop)->whatsapp_order == App\Enums\StatusEnum::true->status()) {{translate("Order Via Whatsapp")}} @endif @if(!$seller) {{translate("Order Via Whatsapp")}} @endif @endif
{{translate("Share")}} :