<?php

namespace App\View\Components;

use Illuminate\View\Component;

class MiniLetterHead extends Component
{
    public $fromDate,$toDate,$companyName,$voucherTitle;
    /**
     * Create a new component instance.
     *
     * @return void
     */
    public function __construct($fromDate,$toDate,$companyName,$voucherTitle)
    {
        $this->fromDate = $fromDate;
        $this->toDate = $toDate;
        $this->companyName = $companyName;
        $this->voucherTitle = $voucherTitle;
    }

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