@if ($discount_products = app(\TPS\Shop\Repositories\ProductRepository::class)->getDiscountedProducts())
    <div class="item-gallery-inner">
        <div class="item-gallery-title">
            <h2>{{__('shop::app.home.discounts')}}</h2>
        </div>
        <div class="item-gallery-wrapper">
            @foreach ($discount_products as $productFlat)
                @include ('shop::products.list.card', ['product' => $productFlat])
            @endforeach
        </div>
    </div>
@endif