miguel456 3727c84f3e
refactor: code style changes
Signed-off-by: miguel456 <me@nogueira.codes>
2023-01-15 00:04:00 +00:00

55 lines
1000 B
PHP
Executable File

<?php
namespace App\View\Components;
use Illuminate\View\Component;
class Button extends Component
{
public string
$type;
public string
$icon;
public string
$link;
public string
$target;
public string
$size;
public string
$color;
public string
$disabled;
public string
$id;
public function __construct($id, $color, $type = 'button', $disabled = false, $size = '', $target = '', $link = '', $icon = '')
{
$this->link = $link;
$this->disabled = $disabled;
$this->type = $type;
$this->target = $target;
$this->size = $size;
$this->color = $color;
$this->id = $id;
$this->icon = $icon;
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
return view('components.button');
}
}