update
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class ButtonCRM extends Component
|
||||
{
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*/
|
||||
public $type;
|
||||
public $route;
|
||||
public $url;
|
||||
public $icon;
|
||||
public $variant;
|
||||
public $size;
|
||||
public function __construct($type = 'button', $route = null, $url = null, $icon = null, $variant = 'primary', $size = 'md')
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->route = $route;
|
||||
$this->url = $url;
|
||||
$this->icon = $icon;
|
||||
$this->variant = $variant;
|
||||
$this->size = $size;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*/
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
return view('components.button-c-r-m');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user