create page tax with data, upload and export group by subdistrict
This commit is contained in:
38
database/migrations/2025_08_04_231702_create_taxs_table.php
Normal file
38
database/migrations/2025_08_04_231702_create_taxs_table.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?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('taxs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('tax_code');
|
||||
$table->string('tax_no')->unique();
|
||||
$table->string('npwpd');
|
||||
$table->string('wp_name');
|
||||
$table->string('business_name');
|
||||
$table->text('address');
|
||||
$table->date('start_validity');
|
||||
$table->date('end_validity');
|
||||
$table->decimal('tax_value', 12, 2);
|
||||
$table->string('subdistrict');
|
||||
$table->string('village');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('taxs');
|
||||
}
|
||||
};
|
||||
@@ -270,6 +270,21 @@ class MenuSeeder extends Seeder
|
||||
],
|
||||
]
|
||||
],
|
||||
[
|
||||
"name" => "Pajak",
|
||||
"url" => "/tax",
|
||||
"icon" => "mingcute:coin-line",
|
||||
"parent_id" => null,
|
||||
"sort_order" => 10,
|
||||
"children" => [
|
||||
[
|
||||
"name" => "Data Pajak",
|
||||
"url" => "taxation",
|
||||
"icon" => null,
|
||||
"sort_order" => 1,
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
foreach ($menus as $menuData) {
|
||||
|
||||
@@ -25,7 +25,8 @@ class UsersRoleMenuSeeder extends Seeder
|
||||
'Menu', 'Role', 'Setting Dashboard', 'PBG', 'Reklame', 'Usaha atau Industri', 'Pariwisata',
|
||||
'Lap Pariwisata', 'UMKM', 'Dashboard Potensi', 'Tata Ruang', 'PDAM', 'PETA',
|
||||
'Lap Pimpinan', 'Dalam Sistem', 'Luar Sistem', 'Google Sheets', 'TPA TPT',
|
||||
'Approval Pejabat', 'Undangan', 'Rekap Pembayaran', 'Lap Rekap Data Pembayaran', 'Lap PBG (PTSP)', 'Lap Pertumbuhan'
|
||||
'Approval Pejabat', 'Undangan', 'Rekap Pembayaran', 'Lap Rekap Data Pembayaran', 'Lap PBG (PTSP)', 'Lap Pertumbuhan',
|
||||
'Pajak', 'Data Pajak'
|
||||
])->get()->keyBy('name');
|
||||
|
||||
// Define access levels for each role
|
||||
|
||||
Reference in New Issue
Block a user