1. added page for edit mutu

2. change from max pinjaman with a static 75% and 80% to manipulate value
This commit is contained in:
Hafifie PKB
2026-03-04 09:36:29 +08:00
parent 441a39b80f
commit ab598c12c9
6 changed files with 293 additions and 3 deletions
@@ -0,0 +1,140 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class CreateMaxMutuemasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('max_mutuemas', function (Blueprint $table) {
$table->id('recno');
$table->string('karat');
$table->string('keterangan');
$table->decimal('teller', 8, 2);
$table->decimal('pc', 8, 2);
$table->decimal('operasi', 8, 2);
$table->timestamp('tarikhupdate');
});
// Insert data
DB::table('max_mutuemas')->insert([
[
'recno' => 1,
'karat' => '24.0Kgb',
'keterangan' => '999 gb',
'teller' => 75.00000,
'pc' => 80.00000,
'operasi' => 80.00000,
'tarikhupdate' => '2025-01-12 00:00:00',
],
[
'recno' => 2,
'karat' => '24.0K',
'keterangan' => '999',
'teller' => 75.00000,
'pc' => 80.00000,
'operasi' => 80.00000,
'tarikhupdate' => '2025-01-12 00:00:00',
],
[
'recno' => 3,
'karat' => '23.0K',
'keterangan' => '950',
'teller' => 74.00000,
'pc' => 80.00000,
'operasi' => 80.00000,
'tarikhupdate' => '2025-01-12 00:00:00',
],
[
'recno' => 4,
'karat' => '22.0K',
'keterangan' => '916',
'teller' => 73.66667,
'pc' => 80.00000,
'operasi' => 80.00000,
'tarikhupdate' => '2025-01-12 00:00:00',
],
[
'recno' => 5,
'karat' => '21.0K',
'keterangan' => '900',
'teller' => 73.16667,
'pc' => 80.00000,
'operasi' => 80.00000,
'tarikhupdate' => '2025-01-12 00:00:00',
],
[
'recno' => 6,
'karat' => '20.0K',
'keterangan' => '835',
'teller' => 72.66667,
'pc' => 80.00000,
'operasi' => 80.00000,
'tarikhupdate' => '2025-01-12 00:00:00',
],
[
'recno' => 7,
'karat' => '18.0Kp',
'keterangan' => '750',
'teller' => 72.16667,
'pc' => 80.00000,
'operasi' => 80.00000,
'tarikhupdate' => '2025-01-12 00:00:00',
],
[
'recno' => 8,
'karat' => '18.0K',
'keterangan' => '750',
'teller' => 71.66667,
'pc' => 80.00000,
'operasi' => 80.00000,
'tarikhupdate' => '2025-01-12 00:00:00',
],
[
'recno' => 21,
'karat' => '14.0K',
'keterangan' => '585',
'teller' => 71.16667,
'pc' => 80.00000,
'operasi' => 80.00000,
'tarikhupdate' => '2025-01-12 00:00:00',
],
[
'recno' => 22,
'karat' => '14.0Kp',
'keterangan' => '585',
'teller' => 70.66667,
'pc' => 80.00000,
'operasi' => 80.00000,
'tarikhupdate' => '2025-01-12 00:00:00',
],
[
'recno' => 23,
'karat' => '9.0K',
'keterangan' => '375',
'teller' => 70.16667,
'pc' => 80.00000,
'operasi' => 80.00000,
'tarikhupdate' => '2025-01-12 00:00:00',
],
]);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('max_mutuemas');
}
}