make files work

This commit is contained in:
2024-09-07 07:32:14 +05:00
parent 46aaf1d6fe
commit 00c8ab1a66
3 changed files with 46 additions and 13 deletions

View File

@@ -52,6 +52,13 @@ class NovaVisaMasterPaymentOrder extends Resource
'unique_id', 'passport_name', 'passport_surname', 'phone',
];
/**
* The relationships that should be eager loaded on index queries.
*
* @var array
*/
public static $with = ['branch'];
/**
* Get the displayable label of the resource.
*/
@@ -105,7 +112,7 @@ class NovaVisaMasterPaymentOrder extends Resource
{
return [
Tabs::make('Wizard', [
new Tab(__('New :resource', ['resource' => $this->singularLabel()]), [
new Tab(__('Status'), [
ID::make()
->hideFromDetail(),
@@ -232,6 +239,8 @@ class NovaVisaMasterPaymentOrder extends Resource
)->rules('required', 'max:255'),
])->maxRows(1)->minRows(1)->rules('required'),
]),
new Tab(__('Reciver files'), VisaMasterPaymentOrderFileFields::reciverFiles())
], $request)->asWizard(),
];
}