<?php

namespace App\View\Components\Home;

use App\Repositories\Catalog\BrandRepository;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class BrandHome extends Component
{


    public $template = 'fashion-v1';

    /**
     * Create a new component instance.
     */
    public function __construct()
    {
     
    }

    /**
     * Get the view / contents that represent the component.
     */
    public function render(): View|Closure|string
    {
        $view = 'components.home.brand-home-fashion-v1';
        if ($this->template === 'fashion-v2') {
            $view = 'components.home.brand-home-fashion-v2';
        }
        return view($view);
    }
}
