*/ public static function getValidations() { return [ 'available' => 'array|required', 'clients_can_change' => 'nullable|string', 'datatables' => 'nullable|string', 'default' => 'required|in:' . implode(',', config('app.available_locales')), 'dynamic' => 'nullable|string', ]; } /** * Summary of optionTypes * Only used for the settings page * @return array>> */ public static function getOptionInputData() { return [ 'category_icon' => 'fas fa-globe', 'available' => [ 'label' => 'Available Locales', 'type' => 'multiselect', 'description' => 'The locales that are available for the user to choose from.', 'options' => config('app.available_locales'), ], 'clients_can_change' => [ 'label' => 'Clients Can Change', 'type' => 'boolean', 'description' => 'Whether clients can change their locale.', ], 'datatables' => [ 'label' => 'Datatables Locale', 'type' => 'string', 'description' => 'The datatables lang-code.
Example: en-gb, fr_fr, de_de
More Information: https://datatables.net/plug-ins/i18n/', ], 'default' => [ 'label' => 'Default Locale', 'type' => 'select', 'description' => 'The default locale to use.', 'options' => config('app.available_locales'), 'identifier' => 'display' ], 'dynamic' => [ 'label' => 'Dynamic Locale', 'type' => 'boolean', 'description' => 'Whether to use the dynamic locale.', ], ]; } }