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
508 B
PHP
29 lines
508 B
PHP
<?php
|
|
|
|
namespace App\View\Components;
|
|
|
|
use Closure;
|
|
use Illuminate\Contracts\View\View;
|
|
use Illuminate\View\Component;
|
|
|
|
class GameCardSmall 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-small');
|
|
}
|
|
}
|