30 lines
942 B
PHP
30 lines
942 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()->getFormService()->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()->getFormService()->getFormFilters(),
|
|
'formOptions' => $this->getService()->getFormService()->getFormOptions(),
|
|
'helper' => $this->getService()->getHelper(),
|
|
'entities' => $entities,
|
|
]
|
|
]);
|
|
}
|
|
}
|