Lae/app/View/Components/BasicCard.php
2022-12-28 00:25:22 +08:00

38 lines
693 B
PHP

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