{{($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
{{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