MOON
Server: Apache
System: Linux server.royaltuning.hu 4.18.0-425.13.1.el8_7.x86_64 #1 SMP Tue Feb 21 04:20:52 EST 2023 x86_64
User: royaltuning (1001)
PHP: 8.2.31
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //var/www/html/Themes/Storefront/Feature.php
<?php

namespace Themes\Storefront;

use Illuminate\Support\Collection;

class Feature
{
    public $icon;
    public $title;
    public $subtitle;

    public function __construct($icon, $title, $subtitle)
    {
        $this->icon = $icon;
        $this->title = $title;
        $this->subtitle = $subtitle;
    }

    public static function all()
    {
        if (! setting('storefront_features_section_enabled')) {
            return collect();
        }

        return Collection::times(5, function ($number) {
            return self::getFeatureFor($number);
        });
    }

    private static function getFeatureFor($number)
    {
        return new self(
            setting("storefront_feature_{$number}_icon"),
            setting("storefront_feature_{$number}_title"),
            setting("storefront_feature_{$number}_subtitle")
        );
    }
}