diff --git a/app/Nova/Resources/Branch/Branch.php b/app/Nova/Resources/Branch/Branch.php index db277ba..b42c43c 100644 --- a/app/Nova/Resources/Branch/Branch.php +++ b/app/Nova/Resources/Branch/Branch.php @@ -99,10 +99,10 @@ class Branch extends Resource ->rules('nullable', 'string', 'max:255') ->hideFromIndex(), - Text::make(__('Billing username (Swift)'), 'billing_swift_username') + Text::make(__('Billing username (Sber)'), 'billing_sber_username') ->rules('nullable', 'string', 'max:255'), - Text::make(__('Billing password (Swift)'), 'billing_swift_password') + Text::make(__('Billing password (Sber)'), 'billing_sber_password') ->rules('nullable', 'string', 'max:255') ->hideFromIndex(), diff --git a/database/migrations/2024_10_14_162812_add_billing_sber_details_to_branches_table.php b/database/migrations/2024_10_14_162812_add_billing_sber_details_to_branches_table.php new file mode 100644 index 0000000..3f54d56 --- /dev/null +++ b/database/migrations/2024_10_14_162812_add_billing_sber_details_to_branches_table.php @@ -0,0 +1,30 @@ +string('billing_sber_username')->nullable(); + $table->string('billing_sber_password')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('branches', function (Blueprint $table) { + $table->dropColumn('billing_sber_username'); + $table->dropColumn('billing_sber_password'); + }); + } +};