This commit is contained in:
nurmuhammet committed 2024-10-12 15:41:49 +05:00
1 parent 7b721496a8
commit 15b69e3899
1 file changed
+24 -21
+24 -21
View File
@@ -14,6 +14,7 @@
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Fields\Textarea;
use Laravel\Nova\Http\Requests\NovaRequest;
use Laravel\Nova\Panel;
use Laravel\Nova\Resource;
class Branch extends Resource
@@ -85,31 +86,33 @@ public function fields(NovaRequest $request): array
Text::make(__('Unique code'), 'unique_code')
->rules('required', 'string', 'max:255'),
Text::make(__('Billing username'), 'billing_username')
->rules('nullable', 'string', 'max:255'),
Text::make(__('Billing password'), 'billing_password')
->rules('nullable', 'string', 'max:255')
->hideFromIndex(),
Text::make(__('Billing username (Swift)'), 'billing_swift_username')
->rules('nullable', 'string', 'max:255'),
Text::make(__('Billing password (Swift)'), 'billing_swift_password')
->rules('nullable', 'string', 'max:255')
->hideFromIndex(),
Text::make(__('Billing username (Visa/Master)'), 'billing_visa_master_username')
->rules('nullable', 'string', 'max:255'),
Text::make(__('Billing password (Visa/Master)'), 'billing_visa_master_password')
->rules('nullable', 'string', 'max:255')
->hideFromIndex(),
Textarea::make(__('Address'), 'address'),
Boolean::make(__('Active'), 'active')
->default(true),
new Panel(__('Billing'), [
Text::make(__('Billing username'), 'billing_username')
->rules('nullable', 'string', 'max:255'),
Text::make(__('Billing password'), 'billing_password')
->rules('nullable', 'string', 'max:255')
->hideFromIndex(),
Text::make(__('Billing username (Swift)'), 'billing_swift_username')
->rules('nullable', 'string', 'max:255'),
Text::make(__('Billing password (Swift)'), 'billing_swift_password')
->rules('nullable', 'string', 'max:255')
->hideFromIndex(),
Text::make(__('Billing username (Visa/Master)'), 'billing_visa_master_username')
->rules('nullable', 'string', 'max:255'),
Text::make(__('Billing password (Visa/Master)'), 'billing_visa_master_password')
->rules('nullable', 'string', 'max:255')
->hideFromIndex(),
])
];
}