add dashboard, fix get data scraping, fix table

This commit is contained in:
arifal
2025-01-24 01:58:06 +07:00
parent 4de7067487
commit 5f93a18f60
53 changed files with 2671 additions and 58 deletions

View File

@@ -0,0 +1,32 @@
<?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('users', function (Blueprint $table) {
$table->string('firstname');
$table->string('lastname');
$table->string('position');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('firstname');
$table->dropColumn('lastname');
$table->dropColumn('position');
});
}
};

View File

@@ -0,0 +1,44 @@
<?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::create('pbg_task', function (Blueprint $table) {
$table->id();
$table->string('uuid');
$table->string('name')->nullable();
$table->string('owner_name')->nullable();
$table->string('application_type')->nullable();
$table->string('application_type_name')->nullable();
$table->string('condition')->nullable();
$table->string('registration_number')->nullable();
$table->string('document_number')->nullable();
$table->string('address')->nullable();
$table->integer('status')->nullable();
$table->string('status_name')->nullable();
$table->string('slf_status')->nullable();
$table->string('slf_status_name')->nullable();
$table->string('function_type')->nullable();
$table->string('consultation_type')->nullable();
$table->date('due_date')->nullable();
$table->boolean('land_certificate_phase')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('pbg_task');
}
};

View File

@@ -0,0 +1,28 @@
<?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('pbg_task', function (Blueprint $table){
$table->timestamp('task_created_at')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pbg_task', function (Blueprint $table){
$table->dropColumn('task_created_at');
});
}
};

View File

@@ -0,0 +1,45 @@
<?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::create('pbg_task_retributions', function (Blueprint $table) {
$table->id();
$table->integer('detail_id')->nullable();
$table->timestamp('detail_created_at')->nullable();
$table->timestamp('detail_updated_at')->nullable();
$table->string('detail_uid')->nullable();
$table->decimal('luas_bangunan')->nullable();
$table->decimal('indeks_lokalitas', 10,4)->nullable();
$table->string('wilayah_shst')->nullable();
$table->integer('kegiatan_id')->nullable();
$table->string('kegiatan_name')->nullable();
$table->decimal('nilai_shst')->nullable();
$table->decimal('indeks_terintegrasi')->nullable();
$table->decimal('indeks_bg_terbangun')->nullable();
$table->decimal('nilai_retribusi_bangunan')->nullable();
$table->decimal('nilai_prasarana')->nullable();
$table->integer('created_by')->nullable();
$table->integer('pbg_document')->nullable();
$table->integer('underpayment')->nullable();
$table->decimal('skrd_amount')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('pbg_task_retributions');
}
};

View File

@@ -0,0 +1,35 @@
<?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::create('pbg_task_prasarana', function (Blueprint $table) {
$table->id();
$table->string('pbg_task_uid')->nullable();
$table->integer('prasarana_id')->nullable();
$table->string('prasarana_type')->nullable();
$table->string('building_type')->nullable();
$table->decimal('total')->nullable();
$table->decimal('quantity')->nullable();
$table->string('unit')->nullable();
$table->decimal('index_prasarana')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('pbg_task_prasarana');
}
};

View File

@@ -0,0 +1,35 @@
<?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::create('pbg_task_index_integrations', function (Blueprint $table) {
$table->id();
$table->string('pbg_task_uid')->nullable();
$table->string('indeks_fungsi_bangunan')->nullable();
$table->string('indeks_parameter_kompleksitas')->nullable();
$table->string('indeks_parameter_permanensi')->nullable();
$table->string('indeks_parameter_ketinggian')->nullable();
$table->string('faktor_kepemilikan')->nullable();
$table->string('indeks_terintegrasi')->nullable();
$table->decimal('total')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('pbg_task_index_integrations');
}
};

View File

@@ -0,0 +1,28 @@
<?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('pbg_task_retributions', function (Blueprint $table) {
$table->string('pbg_task_uid')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pbg_task_retributions', function (Blueprint $table) {
$table->dropColumn('pbg_task_uid');
});
}
};

View File

@@ -0,0 +1,32 @@
<?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('pbg_task_retributions', function (Blueprint $table) {
$table->decimal('nilai_shst', 20,2)->nullable()->change();
$table->decimal('nilai_retribusi_bangunan', 20,2)->nullable()->change();
$table->decimal('indeks_terintegrasi', 20,15)->nullable()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pbg_task_retributions', function (Blueprint $table) {
$table->decimal('nilai_shst', 20,2)->nullable()->change();
$table->decimal('nilai_retribusi_bangunan',20,2)->nullable()->change();
$table->decimal('indeks_terintegrasi',20,15)->nullable()->change();
});
}
};

View File

@@ -0,0 +1,28 @@
<?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('pbg_task_prasarana', function (Blueprint $table) {
$table->decimal('total', 20,2)->nullable()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pbg_task_prasarana', function (Blueprint $table) {
$table->decimal('total',20,2)->nullable()->change();
});
}
};

View File

@@ -22,6 +22,9 @@ class DatabaseSeeder extends Seeder
'email' => 'user@demo.com',
'email_verified_at' => now(),
'password' => Hash::make('password'),
'firstname' => 'John',
'lastname' => 'Doe',
'position' => 'crusial',
'remember_token' => Str::random(10),
]);
}