This commit is contained in:
2024-10-12 15:37:53 +05:00
parent 79631a64c4
commit 7b721496a8
2 changed files with 50 additions and 0 deletions

View File

@@ -92,6 +92,20 @@ class Branch extends Resource
->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')

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('branches', function (Blueprint $table) {
$table->string('billing_swift_username')->nullable();
$table->string('billing_swift_password')->nullable();
$table->string('billing_visa_master_username')->nullable();
$table->string('billing_visa_master_password')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('branches', function (Blueprint $table) {
$table->dropColumn('billing_swift_username');
$table->dropColumn('billing_swift_password');
$table->dropColumn('billing_visa_master_username');
$table->dropColumn('billing_visa_master_password');
});
}
};