@php $freeProduct = getContent('free_product.content', true); $freeProducts = \App\Models\Product::approved() ->allActive() ->with('author') ->withCount(['orderItems as total_sold']) ->groupBy('products.id') ->orderBy('total_sold', 'desc') ->where('is_free', Status::ENABLE) ->limit(10) ->get(); @endphp @if (!$freeProducts->isEmpty())

{{ __(@$freeProduct->data_values->title) }}

@if ($freeProducts->count() > 4) @lang('View All Items') @endif
@foreach ($freeProducts as $product) @endforeach
@endif