You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
497 B
PHTML
29 lines
497 B
PHTML
2 years ago
|
<?php
|
||
|
|
||
|
namespace App\View\Components;
|
||
|
|
||
|
use Closure;
|
||
|
use Illuminate\Contracts\View\View;
|
||
|
use Illuminate\View\Component;
|
||
|
|
||
|
class GameCard extends Component
|
||
|
{
|
||
|
|
||
|
public $game;
|
||
|
/**
|
||
|
* Create a new component instance.
|
||
|
*/
|
||
|
public function __construct($game)
|
||
|
{
|
||
|
$this->game = $game;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the view / contents that represent the component.
|
||
|
*/
|
||
|
public function render(): View|Closure|string
|
||
|
{
|
||
|
return view('components.game-card');
|
||
|
}
|
||
|
}
|