{{@frontend_section_data($new_arrival->value,'heading')}}

{{@frontend_section_data($new_arrival->value,'sub_heading')}}

@forelse($new_products as $product)
{{$product->name}}
@if($product->discount_percentage > 0) {{translate('off')}} {{round($product->discount_percentage)}} % @endif
@php echo show_ratings($product->review->avg('rating')) @endphp

{{$product->name}}

@php $price = (@$product->stock->first()?->price ?? $product->price); @endphp @if(($product->discount_percentage) > 0) {{short_amount(cal_discount($product->discount_percentage,$price))}} {{short_amount($price)}} @else {{short_amount($price)}} @endif
@php $randNum = rand(1,10000000); $authUser = auth_user('web'); $wishedProducts = $authUser ? $authUser->wishlist->pluck('product_id')->toArray() : []; @endphp
@empty @include("frontend.partials.empty",['message' => 'No product found']) @endforelse
@if( @frontend_section_data($promo_banner->value,'position') == 'new-arrivals') @includeWhen($promo_banner->status == '1', 'frontend.section.promotinal_banner', ['promo_banner' => $promo_banner]) @endif @if( @frontend_section_data($promo_second_banner->value,'position') == 'new-arrivals') @includeWhen($promo_second_banner->status == '1', 'frontend.section.promotinal_banner', ['promo_banner' => $promo_second_banner]) @endif