This commit is contained in:
2025-09-08 11:55:05 +05:00
parent 9c236aa8a8
commit ea9b028c23
3 changed files with 77 additions and 36 deletions

View File

@@ -73,20 +73,20 @@ class SberPaymentOrderFieldsForDetail
]),
new Panel(__('Payment'), [
Text::make(__('Payment sender data'), function () use ($resource) {
if (is_array($resource->sender_datas)) {
$data = $resource->sender_datas[0];
return sprintf('%s %s', $data['passport_serie'], $data['full_name']);
}
}),
return sprintf(
'<strong>%s-%s %s</strong>',
$resource->sender_passport_serie,
$resource->sender_passport_number,
$resource->sender_full_name
);
})->asHtml(),
Text::make(__('Töleg ugradyjynyň goýum hasaby'), function () use ($resource) {
if (is_array($resource->sender_datas)) {
$data = $resource->sender_datas[0];
return number_format($data['deposit_account'], 0, '', '');
}
}),
return sprintf(
'<strong>%s</strong>',
number_format($resource->sender_deposit_account, 0, '', '')
);
})->asHtml(),
SimpleRepeatable::make(__('Payee information'), 'payment_reciever', [
Select::make(__('Passport serie'), 'passport_serie')