This commit is contained in:
2024-11-25 22:13:57 +05:00
parent 590a88a96a
commit 717f90fca2
4 changed files with 21 additions and 16 deletions

View File

@@ -40,14 +40,6 @@ class NovaVisaMasterSetting extends Resource
return __('Visa Master Settings');
}
/**
* Get the displayable singular label of the resource.
*/
public static function singularLabel(): string
{
return __('Visa Master Setting');
}
/**
* Get the fields displayed by the resource.
*
@@ -59,13 +51,15 @@ class NovaVisaMasterSetting extends Resource
return [
ID::make('id')->sortable(),
Text::make('Name')
->rules('required', 'string', 'max:255'),
Text::make(__('Code'), 'name')
->rules('required', 'string', 'max:255')
->readonly(! auth()->user()->isMe()),
Text::make('Display name', 'display_name')
->rules('required', 'string', 'max:255'),
Text::make(__('Name'), 'display_name')
->rules('required', 'string', 'max:255')
->readonly(! auth()->user()->isMe()),
Text::make('Value')
Text::make(__('Yazgy'), 'value')
->rules('required', 'string', 'max:255'),
];
}