Edit File: Badge.php
<?php namespace Mary\View\Components; use Closure; use Illuminate\Contracts\View\View; use Illuminate\View\Component; class Badge extends Component { public string $uuid; public function __construct( public ?string $value = null, ) { $this->uuid = "mary" . md5(serialize($this)); } public function render(): View|Closure|string { return <<<'HTML' <div {{ $attributes->class(["badge"])}}> {{ $value }} </div> HTML; } }
Back