for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace KielD01\LaravelMaterialDashboardPro\View\Components\Widgets;
use KielD01\LaravelMaterialDashboardPro\Providers\CoreServiceProvider;
class CardWidget extends Component
{
protected static ?string $name = 'card-widget';
public string $title;
public string $description;
public function __construct($title, $description)
$this->title = $title;
$this->description = $description;
}
/**
* @inheritDoc
*/
public function render(): string
return view(
sprintf(
'%s::%s',
CoreServiceProvider::VIEWS_NAMESPACE,
'elements.widgets.simple-card'
)
->render();