forge/app/View/Components/ModList.php

29 lines
583 B
PHP
Raw Normal View History

2024-05-17 23:54:03 -04:00
<?php
namespace App\View\Components;
use Illuminate\Contracts\View\View;
use Illuminate\Database\Eloquent\Collection;
2024-05-17 23:54:03 -04:00
use Illuminate\View\Component;
class ModList extends Component
{
public Collection $mods;
2024-05-22 01:00:37 -04:00
2024-05-17 23:54:03 -04:00
public string $versionScope;
public function __construct($mods, $versionScope)
{
$this->mods = $mods;
$this->versionScope = $versionScope;
}
public function render(): View
{
return view('components.mod-list', [
'mods' => $this->mods,
'versionScope' => $this->versionScope,
]);
}
}