for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JeroenNoten\LaravelAdminLte\View\Components\Form;
use Illuminate\View\Component;
use JeroenNoten\LaravelAdminLte\Helpers\UtilsHelper;
class Button extends Component
{
/**
* The visible label (text) for the button.
*
* @var string
*/
public $label;
* The button type ('button', 'submit', 'reset'). Similar to the html type
* attribute but with a default value.
public $type;
* The button style theme. One of the available AdminLTE theme: primary,
* secondary, info, warning, danger, success, dark, etc.
public $theme;
* A fontawesome icon for the button.
public $icon;
* Create a new component instance.
* @return void
public function __construct(
$label = null, $type = 'button', $theme = 'default', $icon = null
) {
$this->label = UtilsHelper::applyHtmlEntityDecoder($label);
$this->type = $type;
$this->theme = $theme;
$this->icon = $icon;
}
* Get the view / contents that represent the component.
* @return \Illuminate\View\View|string
public function render()
return view('adminlte::components.form.button');