add business industry crud
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?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('business_or_industries', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nama_kecamatan');
|
||||
$table->string('nama_kelurahan');
|
||||
$table->string('nop')->unique();
|
||||
$table->string('nama_wajib_pajak');
|
||||
$table->text('alamat_wajib_pajak')->nullable();
|
||||
$table->text('alamat_objek_pajak');
|
||||
$table->decimal('luas_bumi',20,2)->default(0);
|
||||
$table->decimal('luas_bangunan',20,2)->default(0);
|
||||
$table->decimal('njop_bumi',20,2)->default(0);
|
||||
$table->decimal('njop_bangunan',20,2)->default(0);
|
||||
$table->decimal('ketetapan',20,2)->default(0);
|
||||
$table->integer('tahun_pajak');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('business_or_industries');
|
||||
}
|
||||
};
|
||||
@@ -148,7 +148,14 @@ class UsersRoleMenuSeeder extends Seeder
|
||||
"url" => "advertisements.index",
|
||||
"icon" => null,
|
||||
"parent_id" => $data->id,
|
||||
"sort_order" => 1,
|
||||
"sort_order" => 2,
|
||||
],
|
||||
[
|
||||
"name" => "Usaha atau Industri",
|
||||
"url" => "business-industries.index",
|
||||
"icon" => null,
|
||||
"parent_id" => $data->id,
|
||||
"sort_order" => 2,
|
||||
],
|
||||
];
|
||||
|
||||
@@ -165,6 +172,7 @@ class UsersRoleMenuSeeder extends Seeder
|
||||
$setting_dashboard = Menu::where('name', 'Setting Dashboard')->first();
|
||||
$setting_pbg = Menu::where('name', 'PBG')->first();
|
||||
$reklame = Menu::where('name', 'Reklame')->first();
|
||||
$businessIndustries = Menu::where('name', 'Usaha atau Industri')->first();
|
||||
|
||||
// Superadmin gets all menus
|
||||
$superadmin->menus()->sync([
|
||||
@@ -184,6 +192,7 @@ class UsersRoleMenuSeeder extends Seeder
|
||||
$setting_dashboard->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
|
||||
$setting_pbg->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
|
||||
$reklame->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
|
||||
$businessIndustries->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
|
||||
]);
|
||||
|
||||
// Admin gets limited menus
|
||||
|
||||
Reference in New Issue
Block a user