/home/brandsfa/.trash/resources/themes/default/web-views/partials/_feature-product.blade.php
@php($overallRating = getOverallRating($product->reviews))
{{--
<div class="product-single-hover shadow-none rtl">
<div class="overflow-hidden position-relative">
<div class="inline_product clickable">
@if($product->discount > 0)
<span class="for-discount-value p-1 pl-2 pr-2 font-bold fs-13">
<span class="direction-ltr d-block">
@if ($product->discount_type == 'percent')
-{{round($product->discount,(!empty($decimal_point_settings) ? $decimal_point_settings: 0))}}%
@elseif($product->discount_type =='flat')
-{{ webCurrencyConverter(amount: $product->discount) }}
@endif
</span>
</span>
@else
<span class="for-discount-value-null"></span>
@endif
<a href="{{route('product',$product->slug)}}">
<img src="{{ getValidImage(path: 'storage/app/public/product/thumbnail/'.$product['thumbnail'], type: 'product') }}" alt="">
</a>
<div class="quick-view">
<a class="btn-circle stopPropagation action-product-quick-view" href="javascript:" data-product-id="{{ $product->id }}">
<i class="czi-eye align-middle"></i>
</a>
</div>
@if($product->product_type == 'physical' && $product->current_stock <= 0)
<span class="out_fo_stock">{{translate('out_of_stock')}}</span>
@endif
</div>
<div class="single-product-details">
@if($overallRating[0] != 0 )
<div class="rating-show justify-content-between">
<span class="d-inline-block font-size-sm text-body">
@for($inc=1;$inc<=5;$inc++)
@if ($inc <= (int)$overallRating[0])
<i class="tio-star text-warning"></i>
@elseif ($overallRating[0] != 0 && $inc <= (int)$overallRating[0] + 1.1 && $overallRating[0] > ((int)$overallRating[0]))
<i class="tio-star-half text-warning"></i>
@else
<i class="tio-star-outlined text-warning"></i>
@endif
@endfor
<label class="badge-style">( {{ count($product->reviews) }} )</label>
</span>
</div>
@endif
<div>
<a href="{{route('product',$product->slug)}}" class="text-capitalize fw-semibold">
{{ Str::limit($product['name'], 23) }}
</a>
</div>
<div class="justify-content-between">
<div class="product-price">
@if($product->discount > 0)
<del class="category-single-product-price">
{{ webCurrencyConverter(amount: $product->unit_price) }}
</del>
@endif
<span class="text-accent text-dark">
{{ webCurrencyConverter(amount:
$product->unit_price-(getProductDiscount(product: $product, price: $product->unit_price))
) }}
</span>
</div>
</div>
</div>
</div>
</div>
--}}
<div class="product-single-hover rtl">
<div class=" box-product-outer">
<div class="box-product">
<div class="img-wrapper" style="height: 222px;">
<a href="{{route('product',$product->slug)}}">
<img alt="{{ Str::limit($product['name'], 23) }}" src="{{ getValidImage(path: 'storage/app/public/product/thumbnail/'.$product['thumbnail'], type: 'product') }}">
</a>
@if($product->discount > 0)
<div class="tags">
@if ($product->discount_type == 'percent')
<span class="label-tags"><span class="label label-danger">-{{round($product->discount,(!empty($decimal_point_settings) ? $decimal_point_settings: 0))}}%</span></span>
@elseif($product->discount_type =='flat')
<span class="label-tags"><span class="label label-danger">-{{ webCurrencyConverter(amount: $product->discount) }}</span></span>
@endif
</div>
@endif
{{--
<div class="option">
<a data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Add to Cart"><i class="ace-icon fa fa-shopping-cart"></i></a>
<a href="#" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Compare"><i class="ace-icon fa fa-align-left"></i></a>
<a href="#" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Wishlist"><i class="ace-icon fa fa-heart"></i></a>
</div>
--}}
</div>
<div class="rating px-2">
@if($overallRating[0] != 0 )
@for($inc=1;$inc<=5;$inc++)
@if ($inc <= (int)$overallRating[0])
<i class="ace-icon fa fa-star"></i>
@elseif ($overallRating[0] != 0 && $inc <= (int)$overallRating[0] + 1.1 && $overallRating[0] > ((int)$overallRating[0]))
<i class="ace-icon fa fa-star-half-o"></i>
@else
<i class="ace-icon fa fa-star-o"></i>
@endif
@endfor
<a href="#">({{ count($product->reviews) }})</a>
@endif
</div>
<h6 class="h_45 px-2"><a href="{{route('product',$product->slug)}}">{{ Str::limit($product['name'], 23) }}</a></h6>
<div class="price px-2">
<div>
@if($product->discount > 0)
<span class="price-old">{{ webCurrencyConverter(amount: $product->unit_price) }}</span>
@endif
{{ webCurrencyConverter(amount:
$product->unit_price-(getProductDiscount(product: $product, price: $product->unit_price))
) }}
</div>
</div>
<div class="p-md-2 p-2 text-left">
<a href="{{ route('product', $product->slug) }}" class="addbtn mr-2 p-1 add-to-cart fw-600 w-100 text-center rounded" tabindex="0">
<span class="d-block"> Buy Now</span>
</a>
</div>
</div>
</div>
</div>
/* CSS comment in PHP: body { color: red; } */