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