Files
portal-api/app/View/Components/ButtonCRM.php
T
2026-02-02 22:55:43 +07:00

38 lines
833 B
PHP

<?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');
}
}