Branch
This commit is contained in:
@@ -14,6 +14,7 @@ use Laravel\Nova\Fields\Select;
|
||||
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 @@ class Branch extends Resource
|
||||
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(),
|
||||
])
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user