dbmsv4/app/Cells/PaymentCell.php
2026-01-30 14:38:57 +09:00

30 lines
939 B
PHP

<?php
namespace App\Cells;
use App\Services\PaymentService;
class PaymentCell extends CommonCell
{
public function __construct()
{
parent::__construct(service('paymentservice'));
}
public function detail(array $params): string
{
$this->getService()->getActionForm()->action_init_process(__FUNCTION__);
$entities = $this->getService()->getEntities(['clientinfo_uid' => $params['clientinfo_uid'], 'billing' => PAYMENT['BILLING']['ONETIME'], 'status' => STATUS['UNPAID']]);
$template = array_key_exists('template', $params) ? $params['template'] : __FUNCTION__;
return view('cells/payment/' . $template, [
'paymentCellDatas' => [
'formFilters' => $this->getService()->getActionForm()->getFormFilters(),
'formOptions' => $this->getService()->getActionForm()->getFormOptions(),
'helper' => $this->getService()->getHelper(),
'entities' => $entities,
]
]);
}
}