dbmsv4/app/Cells/Part/RAMCell.php
2025-11-20 17:27:03 +09:00

24 lines
491 B
PHP

<?php
namespace App\Cells\Part;
use App\Services\Part\RAMService;
class RAMCell extends PartCell
{
public function __construct()
{
parent::__construct(service('part_ramservice'));
}
public function stock(array $params): string
{
$template = array_key_exists('template', $params) ? $params['template'] : 'ram_stock';
return view('cells/part/' . $template, [
'partCellDatas' => [
'entities' => $this->getService()->getEntities(),
],
]);
}
}