改回 basic card

This commit is contained in:
iVampireSP.com 2023-02-12 01:09:58 +08:00
parent 791f0e2190
commit c9315dcb04
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -0,0 +1,33 @@
<?php
namespace App\View\Components;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class BasicCard extends Component
{
public string $title;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct($title)
{
$this->title = $title;
}
/**
* Get the view / contents that represent the component.
*
* @return View
*/
public function render(): View
{
return view('components.basic-card', [
'title' => $this->title,
]);
}
}