<?php

namespace App\View\Components;

use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class SelectTwo extends Component
{
    public $name, $multiple, $id, $isSelect2 = true;
    public function __construct($name = null, $multiple = false, $id = null, $isSelect2 = true)
    {
        $this->name = $name;
        $this->multiple = $multiple;
        $this->id = $id;
        $this->isSelect2 = $isSelect2;
    }

    /**
     * Get the view / contents that represent the component.
     */
    public function render(): View|Closure|string
    {
        return view('components.select-two', get_defined_vars());
    }
}
