DONE: add flexible json update saham, yuran, and pelaburan ui

This commit is contained in:
ISMAIL MASSERAN
2026-07-19 11:54:13 +08:00
parent fa2eaef6c4
commit cd1dc4b9d8
18 changed files with 4010 additions and 15 deletions
BIN
View File
Binary file not shown.
@@ -0,0 +1,33 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddDividenPelaburanAndPelaburanTerkiniToVoterTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('voter', function (Blueprint $table) {
$table->decimal('dividen_pelaburan', 12, 2)->default(0)->after('pelaburan');
$table->decimal('pelaburan_terkini', 12, 2)->default(0)->after('dividen_pelaburan');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('voter', function (Blueprint $table) {
$table->dropColumn(['dividen_pelaburan', 'pelaburan_terkini']);
});
}
}
@@ -0,0 +1,35 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddPelaburan2ColumnsToVoterTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('voter', function (Blueprint $table) {
$table->decimal('pelaburan_2', 12, 2)->default(0)->after('pelaburan_terkini');
$table->decimal('dividen_pelaburan_2', 12, 2)->default(0)->after('pelaburan_2');
$table->decimal('pelaburan_terkini_2', 12, 2)->default(0)->after('dividen_pelaburan_2');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('voter', function (Blueprint $table) {
$table->dropColumn(['pelaburan_2', 'dividen_pelaburan_2', 'pelaburan_terkini_2']);
});
}
}
BIN
View File
Binary file not shown.
File diff suppressed because it is too large Load Diff