<?php

namespace App\View\Components;

use Illuminate\View\Component;

class FormControlTextArea extends Component
{
    public $name;

    public $required;

    public $id;

    public $value;

    /**
     * @param $required
     * @param $id
     * @param $attribute
     * @param $value
     */
    public function __construct($name, $id = '', $value = '', $required = false)
    {
        $this->required = $required;
        $this->id = $id;
        $this->name = $name;
        $this->value = $value;
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\Contracts\View\View|\Closure|string
     */
    public function render()
    {
        return view('components.form-control-text-area');
    }
}
