This commit is contained in:
2025-09-06 13:27:03 +05:00
parent c348416c05
commit 5ebf573da2

View File

@@ -10,6 +10,7 @@ use App\Nova\Actions\MakeSberPaymentAction;
use App\Nova\Filters\VisaMasterMonthlyPaidFilter; use App\Nova\Filters\VisaMasterMonthlyPaidFilter;
use App\Nova\Resource; use App\Nova\Resource;
use App\Nova\User; use App\Nova\User;
use Illuminate\Support\Facades\Validator;
use App\Repos\Order\Card\CardOrderRepo; use App\Repos\Order\Card\CardOrderRepo;
use App\Repos\Order\OrderRepo; use App\Repos\Order\OrderRepo;
use App\Repos\System\Nova\NovaRepo; use App\Repos\System\Nova\NovaRepo;
@@ -274,11 +275,7 @@ class NovaSberPaymentOrder extends Resource
Text::make( Text::make(
name: __('Goýum hasaby'), name: __('Goýum hasaby'),
attribute: 'deposit_account' attribute: 'deposit_account'
)->fillUsing(function ($request, $model, $attribute) { ),
$raw = number_format($request->$attribute, 0, '', '');
$model->$attribute = "{'deposit_account': '".$raw."'}";
}),
])->minRows(1)->rules('required'), ])->minRows(1)->rules('required'),
SimpleRepeatable::make(__('Payee information'), 'payment_reciever', [ SimpleRepeatable::make(__('Payee information'), 'payment_reciever', [