Miguel Nogueira
4eb115d165
This reverts pull request #6. > This pull request applies code style fixes from an analysis carried out by [StyleCI](https://bitbucket.styleci.io). > > For more information, click [here](https://bitbucket.styleci.io/analyses/a2Jl7D).
46 lines
846 B
PHP
46 lines
846 B
PHP
<?php
|
|
|
|
namespace App\View\Components;
|
|
|
|
use Illuminate\View\Component;
|
|
|
|
class Modal extends Component
|
|
{
|
|
public $id;
|
|
|
|
|
|
public $modalLabel;
|
|
|
|
|
|
public $modalTitle;
|
|
|
|
|
|
public $includeCloseButton;
|
|
|
|
/**
|
|
* Create a new component instance.
|
|
*
|
|
* @param $id
|
|
* @param $modalLabel
|
|
* @param $modalTitle
|
|
* @param $includeCloseButton
|
|
*/
|
|
public function __construct($id, $modalLabel, $modalTitle, $includeCloseButton)
|
|
{
|
|
$this->id = $id;
|
|
$this->modalLabel = $modalLabel;
|
|
$this->modalTitle = $modalTitle;
|
|
$this->includeCloseButton = $includeCloseButton;
|
|
}
|
|
|
|
/**
|
|
* Get the view / contents that represent the component.
|
|
*
|
|
* @return \Illuminate\View\View|string
|
|
*/
|
|
public function render()
|
|
{
|
|
return view('components.modal');
|
|
}
|
|
}
|