<?php

namespace App\View\Components\Form;

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

class PersianDatepicker extends Component
{
    public $name;
    public $label;
    public $value;
    public $timePicker;

    public function __construct($name, $label = null, $value = null, $timePicker = false)
    {
        $this->name = $name;
        $this->label = $label;
        $this->value = $value;
        $this->timePicker = $timePicker;
    }

    /**
     * Get the view / contents that represent the component.
     */
    public function render(): View|Closure|string
    {
        return view('components.form.persian-datepicker');
    }
}
