<?php

namespace App\View\Components\common;

use Illuminate\View\Component;

class BSmodal extends Component
{
    /**
     * Create a new component instance.
     *
     * @return void
     */
    public $id ;
    public $modalType;
    public $formId;
    public $title;
    public function __construct($id,$modalType,$formId,$title)
    {
        $this->id = $id;
        $this->modalType = $modalType;
        $this->formId = $formId;
        $this->title = $title;
    }

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