This commit is contained in:
2024-09-09 20:07:43 +05:00
parent 2de6f94ff3
commit b7ee29173c

View File

@@ -120,8 +120,7 @@ class NovaVisaMasterPaymentOrder extends Resource
public function fields(NovaRequest $request): array public function fields(NovaRequest $request): array
{ {
return [ return [
Tabs::make('Wizard', [ new Panel(__('Status'), [
new Tab(__('Status'), [
ID::make() ID::make()
->hideFromDetail(), ->hideFromDetail(),
@@ -156,7 +155,7 @@ class NovaVisaMasterPaymentOrder extends Resource
->canSeeWhen('systemUser', $this), ->canSeeWhen('systemUser', $this),
]), ]),
new Tab(__('Application type'), [ new Panel(__('Application type'), [
Select::make(__('Application type'), 'type') Select::make(__('Application type'), 'type')
->fullWidth() ->fullWidth()
->searchable() ->searchable()
@@ -165,7 +164,7 @@ class NovaVisaMasterPaymentOrder extends Resource
->options(VisaMasterPaymentOrder::applicationTypes()), ->options(VisaMasterPaymentOrder::applicationTypes()),
]), ]),
new Tab(__('Location'), [ new Panel(__('Location'), [
Select::make(__('Region'), 'region') Select::make(__('Region'), 'region')
->fullWidth() ->fullWidth()
->displayUsingLabels() ->displayUsingLabels()
@@ -184,7 +183,7 @@ class NovaVisaMasterPaymentOrder extends Resource
->sortable(), ->sortable(),
]), ]),
new Tab(__('Personal data'), [ new Panel(__('Personal data'), [
Text::make(__('Passport name'), 'passport_name') Text::make(__('Passport name'), 'passport_name')
->fullWidth() ->fullWidth()
->rules('required', 'string', 'max:255'), ->rules('required', 'string', 'max:255'),
@@ -210,7 +209,7 @@ class NovaVisaMasterPaymentOrder extends Resource
->hideFromIndex(), ->hideFromIndex(),
]), ]),
new Tab(__('Payment'), [ new Panel(__('Payment'), [
SimpleRepeatable::make(__('Payment sender data'), 'sender_datas', [ SimpleRepeatable::make(__('Payment sender data'), 'sender_datas', [
Select::make(__('Passport serie'), 'passport_serie') Select::make(__('Passport serie'), 'passport_serie')
->displayUsingLabels() ->displayUsingLabels()
@@ -249,9 +248,8 @@ class NovaVisaMasterPaymentOrder extends Resource
])->maxRows(1)->minRows(1)->rules('required'), ])->maxRows(1)->minRows(1)->rules('required'),
]), ]),
new Tab(__('Reciver files'), VisaMasterPaymentOrderFileFields::reciverFiles()), new Panel(__('Reciver files'), VisaMasterPaymentOrderFileFields::reciverFiles()),
new Tab(__('Sender files'), VisaMasterPaymentOrderFileFields::senderFiles()), new Panel(__('Sender files'), VisaMasterPaymentOrderFileFields::senderFiles()),
], $request)->asWizard(),
]; ];
} }
} }