add updates
This commit is contained in:
@@ -160,7 +160,7 @@ class CardPin extends Resource
|
||||
*/
|
||||
public static function redirectAfterCreate(NovaRequest $request, $resource): URL|string
|
||||
{
|
||||
$payment = (new OnlinePaymentRepo())->payCardOrder($resource);
|
||||
$payment = (new OnlinePaymentRepo)->payCardOrder($resource);
|
||||
|
||||
return $payment['status'] === 'success'
|
||||
? URL::remote($payment['url'])
|
||||
@@ -244,15 +244,15 @@ class CardPin extends Resource
|
||||
new Panel(__('Personal data'), [
|
||||
Text::make(__('Name'), 'customer_name')
|
||||
->size('w-1/3')
|
||||
->rules('required', 'string', new OnlyLetters(), 'max:255'),
|
||||
->rules('required', 'string', new OnlyLetters, 'max:255'),
|
||||
|
||||
Text::make(__('Surname'), 'customer_surname')
|
||||
->size('w-1/3')
|
||||
->rules('required', 'string', new OnlyLetters(), 'max:255'),
|
||||
->rules('required', 'string', new OnlyLetters, 'max:255'),
|
||||
|
||||
Text::make(__('Patronic name'), 'customer_patronic_name')
|
||||
->size('w-1/3')
|
||||
->rules('nullable', 'string', new OnlyLetters(), 'max:255'),
|
||||
->rules('nullable', 'string', new OnlyLetters, 'max:255'),
|
||||
|
||||
Date::make(__('Date of birth'), 'born_at')
|
||||
->size('w-1/2')
|
||||
@@ -329,7 +329,7 @@ class CardPin extends Resource
|
||||
RegionFilter::make()
|
||||
->canSee(fn () => Gate::allows('isAdmin', auth()->user())),
|
||||
|
||||
new StatusFilter(),
|
||||
new StatusFilter,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user