2024-05-17 23:54:03 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\View\Components;
|
|
|
|
|
|
|
|
use Illuminate\Contracts\View\View;
|
2024-05-24 17:06:02 -04:00
|
|
|
use Illuminate\Database\Eloquent\Collection;
|
2024-05-17 23:54:03 -04:00
|
|
|
use Illuminate\View\Component;
|
|
|
|
|
|
|
|
class ModList extends Component
|
|
|
|
{
|
2024-05-24 17:06:02 -04:00
|
|
|
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,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|