Compare commits
2 Commits
e41455299d
...
4d4ab1817f
Author | SHA1 | Date |
---|---|---|
|
4d4ab1817f | |
|
6c874e5389 |
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Master;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\Master\MasterBantuanPemerintahs;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class MasterBantuanPemerintahController extends Controller
|
||||||
|
{
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$data = MasterBantuanPemerintahs::paginate(10);
|
||||||
|
|
||||||
|
return view('pages.masters.bantuan-pemerintahs.index', compact('data'));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Master;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\Master\MasterDisabilitas;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class MasterDisabilitasController extends Controller
|
||||||
|
{
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$data = MasterDisabilitas::paginate(10);
|
||||||
|
|
||||||
|
return view('pages.masters.disabilitas.index', compact('data'));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Master;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\Master\MasterJenjangPendidikans;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class MasterJenjangPendidikanController extends Controller
|
||||||
|
{
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$data = MasterJenjangPendidikans::paginate(10);
|
||||||
|
|
||||||
|
return view('pages.masters.jenjang-pendidikans.index', compact('data'));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Master;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\Master\MasterStatusPerkawinans;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class MasterPekerjaanController extends Controller
|
||||||
|
{
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$data = MasterStatusPerkawinans::paginate(10);
|
||||||
|
|
||||||
|
return view('pages.masters.pekerjaans.index', compact('data'));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Master;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\Master\MasterStatusPerkawinans;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class MasterStatusPerkawinanController extends Controller
|
||||||
|
{
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$data = MasterStatusPerkawinans::paginate(10);
|
||||||
|
|
||||||
|
return view('pages.masters.disabilitas.index', compact('data'));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Master;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\Master\MasterStatusTempatTinggals;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class MasterStatusTempatTinggalController extends Controller
|
||||||
|
{
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$data = MasterStatusTempatTinggals::paginate(10);
|
||||||
|
|
||||||
|
return view('pages.masters.status-tempat-tinggals.index', compact('data'));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models\Master;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class MasterBantuanPemerintahs extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
protected $table = 'mst_bantuan_pemerintahs';
|
||||||
|
public $timestamps = false;
|
||||||
|
|
||||||
|
protected $guarded = [];
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models\Master;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class MasterDisabilitas extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
protected $table = 'mst_disabilitas';
|
||||||
|
public $timestamps = false;
|
||||||
|
|
||||||
|
protected $guarded = [];
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models\Master;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class MasterJenjangPendidikans extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
protected $table = 'mst_jenjang_pendidikans';
|
||||||
|
public $timestamps = false;
|
||||||
|
|
||||||
|
protected $guarded = [];
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models\Master;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class MasterPekerjaans extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
protected $table = 'mst_pekerjaans';
|
||||||
|
public $timestamps = false;
|
||||||
|
|
||||||
|
protected $guarded = [];
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models\Master;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class MasterStatusPerkawinans extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
protected $table = 'mst_status_perkawinans';
|
||||||
|
public $timestamps = false;
|
||||||
|
|
||||||
|
protected $guarded = [];
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models\Master;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class MasterStatusTempatTinggals extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
protected $table = 'mst_status_tempat_tinggals';
|
||||||
|
public $timestamps = false;
|
||||||
|
|
||||||
|
protected $guarded = [];
|
||||||
|
}
|
|
@ -0,0 +1,82 @@
|
||||||
|
-- phpMyAdmin SQL Dump
|
||||||
|
-- version 5.2.0
|
||||||
|
-- https://www.phpmyadmin.net/
|
||||||
|
--
|
||||||
|
-- Host: localhost:3306
|
||||||
|
-- Generation Time: Jul 09, 2024 at 11:20 AM
|
||||||
|
-- Server version: 11.3.2-MariaDB-log
|
||||||
|
-- PHP Version: 8.2.21
|
||||||
|
|
||||||
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
START TRANSACTION;
|
||||||
|
SET time_zone = "+00:00";
|
||||||
|
|
||||||
|
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||||
|
/*!40101 SET NAMES utf8mb4 */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Database: `survey_sdgs`
|
||||||
|
--
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `question_details`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `question_details` (`id`, `question_id`, `question_label`, `question_value`, `updated_by`, `created_by`, `deleted_by`, `deleted_at`, `remember_token`, `created_at`, `updated_at`) VALUES
|
||||||
|
(1, 1, '[\"Jawaban Singkat\"]', '[\"Teks Jawaban Singkat\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:53:14', '2024-07-02 00:53:29'),
|
||||||
|
(2, 2, '[\"Jawaban Singkat\"]', '[\"Teks Jawaban Singkat\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:53:32', '2024-07-02 00:54:59'),
|
||||||
|
(3, 3, '[\"Master\"]', '[\"MasterStatusPerkawinans\", \"keterangan\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:55:04', '2024-07-09 04:17:17'),
|
||||||
|
(4, 4, '[\"Master\"]', '[\"MasterJenjangPendidikans\", \"keterangan\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:55:14', '2024-07-09 04:16:58'),
|
||||||
|
(5, 5, '[\"Master\"]', '[\"Agamas\", \"keterangan\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:55:33', '2024-07-02 00:55:49'),
|
||||||
|
(6, 6, '[\"Master\"]', '[\"MasterPekerjaans\", \"keterangan\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:55:52', '2024-07-09 04:16:50'),
|
||||||
|
(7, 7, '[\"Master\"]', '[\"Alamats\", \"Alamat\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:56:08', '2024-07-09 04:16:41'),
|
||||||
|
(8, 8, '[\"Jawaban Singkat\"]', '[\"Teks Jawaban Singkat\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:56:22', '2024-07-02 00:56:28'),
|
||||||
|
(9, 9, '[\"Jawaban Singkat\"]', '[\"Teks Jawaban Singkat\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:56:33', '2024-07-02 00:56:42'),
|
||||||
|
(10, 10, '[\"Jawaban Singkat\"]', '[\"Teks Jawaban Singkat\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:56:53', '2024-07-02 00:57:10'),
|
||||||
|
(11, 11, '[\"Master\"]', '[\"MasterBantuanPemerintahs\", \"keterangan\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:57:12', '2024-07-09 04:16:02'),
|
||||||
|
(12, 12, '[\"Jawaban Angka\"]', '[\"Angka\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:57:34', '2024-07-02 00:57:48'),
|
||||||
|
(13, 13, '[\"Master\"]', '[\"MasterStatusTempatTinggals\", \"keterangan\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:57:59', '2024-07-09 04:15:45'),
|
||||||
|
(14, 14, '[\"Master\"]', '[\"MasterDisabilitas\", \"keterangan\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:58:13', '2024-07-09 04:15:35'),
|
||||||
|
(15, 15, '[\"Jawaban Singkat\"]', '[\"Teks Jawaban Singkat\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:58:32', '2024-07-09 04:15:30'),
|
||||||
|
(16, 16, '[\"Jawaban Angka\"]', '[\"Angka\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:59:07', '2024-07-09 04:14:18'),
|
||||||
|
(17, 17, '[\"Jawaban Angka\"]', '[\"Angka\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:59:21', '2024-07-09 04:14:20'),
|
||||||
|
(18, 18, '[\"Jawaban Angka\"]', '[\"Angka\"]', NULL, NULL, NULL, NULL, NULL, '2024-07-09 04:14:23', '2024-07-09 04:15:13');
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `question_surveys`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `question_surveys` (`id`, `survey_id`, `name`, `type`, `status`, `updated_by`, `created_by`, `deleted_by`, `deleted_at`, `remember_token`, `created_at`, `updated_at`) VALUES
|
||||||
|
(1, 1, 'NO. KK', 'Jawaban Singkat', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:51:42', '2024-07-02 00:53:29'),
|
||||||
|
(2, 1, 'SHDK', 'Jawaban Singkat', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:53:32', '2024-07-02 00:54:59'),
|
||||||
|
(3, 1, 'STATUS PERKAWINAN', 'Master', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:55:04', '2024-07-09 04:17:00'),
|
||||||
|
(4, 1, 'PENDIDIKAN TERAKHIR', 'Master', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:55:14', '2024-07-09 04:16:54'),
|
||||||
|
(5, 1, 'AGAMA', 'Master', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:55:33', '2024-07-02 00:55:49'),
|
||||||
|
(6, 1, 'PEKERJAAN', 'Master', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:55:52', '2024-07-09 04:16:46'),
|
||||||
|
(7, 1, 'DUSUN (ALAMAT)', 'Master', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:56:08', '2024-07-09 04:16:39'),
|
||||||
|
(8, 1, 'RT', 'Jawaban Singkat', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:56:22', '2024-07-02 00:56:57'),
|
||||||
|
(9, 1, 'RW', 'Jawaban Singkat', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:56:33', '2024-07-02 00:56:59'),
|
||||||
|
(10, 1, 'BPJS', 'Jawaban Singkat', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:56:53', '2024-07-02 00:57:10'),
|
||||||
|
(11, 1, 'BANTUAN YANG DITERIMA', 'Master', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:57:12', '2024-07-09 04:15:53'),
|
||||||
|
(12, 1, 'NO. HP', 'Jawaban Angka', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:57:34', '2024-07-02 00:57:48'),
|
||||||
|
(13, 1, 'STATUS RUMAH', 'Master', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:57:59', '2024-07-09 04:15:38'),
|
||||||
|
(14, 1, 'KET. DISABILITAS', 'Master', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:58:13', '2024-07-09 04:15:33'),
|
||||||
|
(15, 1, 'USAHA YANG DIMILIKI', 'Jawaban Singkat', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:58:32', '2024-07-09 04:15:30'),
|
||||||
|
(16, 1, 'HEWAN TERNAK', 'Jawaban Angka', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:59:07', '2024-07-09 04:14:18'),
|
||||||
|
(17, 1, 'KENDARAAN', 'Jawaban Angka', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:59:20', '2024-07-09 04:14:20'),
|
||||||
|
(18, 1, 'LUAS LAHAN PERTANIAN PRIBADI (M2)', 'Jawaban Angka', 'Submitted', NULL, NULL, NULL, NULL, NULL, '2024-07-09 04:14:23', '2024-07-09 04:15:13');
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `surveys`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `surveys` (`id`, `name`, `description`, `years`, `status`, `updated_by`, `created_by`, `deleted_by`, `deleted_at`, `remember_token`, `created_at`, `updated_at`) VALUES
|
||||||
|
(1, 'SURVEY PENDATAAN WARGA DESA', 'Tujuan pendataan penduduk adalah untuk menyediakan data dan informasi tentang penduduk suatu desa dalam upaya meningkatkan pembangunan daerah dan memperbaiki kualitas hidup penduduk.', '2024', 'Published', NULL, NULL, NULL, NULL, NULL, '2024-07-02 00:51:42', '2024-07-02 00:52:55');
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
@ -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::create('mst_jenjang_pendidikans', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string("keterangan");
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('mst_jenjang_pendidikans');
|
||||||
|
}
|
||||||
|
};
|
|
@ -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::create('mst_status_tempat_tinggals', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string("keterangan");
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('mst_status_tempat_tinggals');
|
||||||
|
}
|
||||||
|
};
|
|
@ -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::create('mst_disabilitas', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string("keterangan");
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('mst_disabilitas');
|
||||||
|
}
|
||||||
|
};
|
|
@ -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::create('mst_status_perkawinans', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string("keterangan");
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('mst_status_perkawinans');
|
||||||
|
}
|
||||||
|
};
|
|
@ -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::create('mst_pekerjaans', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string("keterangan");
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('mst_pekerjaans');
|
||||||
|
}
|
||||||
|
};
|
|
@ -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::create('mst_bantuan_pemerintahs', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string("keterangan");
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('mst_bantuan_pemerintahs');
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,69 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
|
class BantuanPemerintahSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
$data = [
|
||||||
|
[
|
||||||
|
'id' => 1,
|
||||||
|
'keterangan' => 'Tidak Ada',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 2,
|
||||||
|
'keterangan' => 'Program Keluarga Harapan (PKH)',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 3,
|
||||||
|
'keterangan' => 'Program Bantuan Langsung Tunai (BLT)',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 4,
|
||||||
|
'keterangan' => 'Program Indonesia Pintar (PIP)',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 5,
|
||||||
|
'keterangan' => 'Program Kartu Indonesia Pintar (KIP)',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 6,
|
||||||
|
'keterangan' => 'Program Bantuan Siswa Miskin (BSM)',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 7,
|
||||||
|
'keterangan' => 'Program Kredit Usaha Rakyat (KUR)',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 8,
|
||||||
|
'keterangan' => 'Program Bantuan Pangan Non Tunai (BPNT)',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 9,
|
||||||
|
'keterangan' => 'Program Bantuan Listrik Bersubsidi',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 10,
|
||||||
|
'keterangan' => 'Program Bedah Rumah',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 11,
|
||||||
|
'keterangan' => 'Program Bantuan Bibit dan Pupuk',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 100,
|
||||||
|
'keterangan' => 'Lainnya',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
DB::table("mst_bantuan_pemerintahs")->insert($data);
|
||||||
|
}
|
||||||
|
}
|
|
@ -30,6 +30,17 @@ class DatabaseSeeder extends Seeder
|
||||||
AddUsers::class,
|
AddUsers::class,
|
||||||
AgamaSeeder::class,
|
AgamaSeeder::class,
|
||||||
ManagementMasterSeeder::class,
|
ManagementMasterSeeder::class,
|
||||||
|
|
||||||
|
// Master
|
||||||
|
DisabilitasSeeder::class,
|
||||||
|
JenjangPendidikanSeeder::class,
|
||||||
|
PekerjaanSeeder::class,
|
||||||
|
StatusPerkawinanSeeder::class,
|
||||||
|
StatusTempatTinggalSeeder::class,
|
||||||
|
BantuanPemerintahSeeder::class,
|
||||||
|
|
||||||
|
// Data Responden
|
||||||
|
RespondenSeeder::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($classes as $kelas)
|
foreach ($classes as $kelas)
|
||||||
|
|
|
@ -0,0 +1,69 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
|
class DisabilitasSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
$data = [
|
||||||
|
[
|
||||||
|
'id' => 1,
|
||||||
|
'keterangan' => 'Tidak Ada',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 2,
|
||||||
|
'keterangan' => 'Disabilitas Netra',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 3,
|
||||||
|
'keterangan' => 'Disabilitas Rungu',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 4,
|
||||||
|
'keterangan' => 'Disabilitas Daksa',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 5,
|
||||||
|
'keterangan' => 'Disabilitas Intelektual',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 6,
|
||||||
|
'keterangan' => 'Disabilitas Mental',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 7,
|
||||||
|
'keterangan' => 'Gangguan Emosi dan Perilaku',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 8,
|
||||||
|
'keterangan' => 'Gangguan Komunikasi',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 9,
|
||||||
|
'keterangan' => 'Gangguan Perhatian dan Hiperaktivitas',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 10,
|
||||||
|
'keterangan' => 'Kesulitan Belajar spesifik',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 11,
|
||||||
|
'keterangan' => 'Gangguan Spektrum Autis (ASD)',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 100,
|
||||||
|
'keterangan' => 'Lainnya',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
DB::table("mst_disabilitas")->insert($data);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,69 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
|
class JenjangPendidikanSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
$data = [
|
||||||
|
[
|
||||||
|
'id' => 1,
|
||||||
|
'keterangan' => 'Tidak Sekolah',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 2,
|
||||||
|
'keterangan' => 'SD / MI',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 3,
|
||||||
|
'keterangan' => 'SMP / MTs / SMTP',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 4,
|
||||||
|
'keterangan' => 'SMA / SMK / MA / SMTA',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 5,
|
||||||
|
'keterangan' => 'D1',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 6,
|
||||||
|
'keterangan' => 'D2',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 7,
|
||||||
|
'keterangan' => 'D3',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 8,
|
||||||
|
'keterangan' => 'D4',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 9,
|
||||||
|
'keterangan' => 'S1',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 10,
|
||||||
|
'keterangan' => 'S2',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 11,
|
||||||
|
'keterangan' => 'S3',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 100,
|
||||||
|
'keterangan' => 'Lainnya',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
DB::table("mst_jenjang_pendidikans")->insert($data);
|
||||||
|
}
|
||||||
|
}
|
|
@ -15,51 +15,99 @@ class ManagementMasterSeeder extends Seeder
|
||||||
public function run(): void
|
public function run(): void
|
||||||
{
|
{
|
||||||
$data_roles = [
|
$data_roles = [
|
||||||
|
// [
|
||||||
|
// 'id' => 1,
|
||||||
|
// 'master_code' => 'Master Agama',
|
||||||
|
// 'master_value' => 'Agamas',
|
||||||
|
// 'master_column' => 'keterangan',
|
||||||
|
// 'created_at' => Carbon::now()->toDateTimeString(),
|
||||||
|
// 'updated_at' => Carbon::now()->toDateTimeString()
|
||||||
|
// ],
|
||||||
|
// [
|
||||||
|
// 'id' => 2,
|
||||||
|
// 'master_code' => 'Master Provinsi',
|
||||||
|
// 'master_value' => 'Provinsis',
|
||||||
|
// 'master_column' => 'nama',
|
||||||
|
// 'created_at' => Carbon::now()->toDateTimeString(),
|
||||||
|
// 'updated_at' => Carbon::now()->toDateTimeString()
|
||||||
|
// ],
|
||||||
|
// [
|
||||||
|
// 'id' => 3,
|
||||||
|
// 'master_code' => 'Master Kabupaten',
|
||||||
|
// 'master_value' => 'Kabupatens',
|
||||||
|
// 'master_column' => 'nama',
|
||||||
|
// 'created_at' => Carbon::now()->toDateTimeString(),
|
||||||
|
// 'updated_at' => Carbon::now()->toDateTimeString()
|
||||||
|
// ],
|
||||||
|
// [
|
||||||
|
// 'id' => 4,
|
||||||
|
// 'master_code' => 'Master Kecamatan',
|
||||||
|
// 'master_value' => 'Kecamatans',
|
||||||
|
// 'master_column' => 'nama',
|
||||||
|
// 'created_at' => Carbon::now()->toDateTimeString(),
|
||||||
|
// 'updated_at' => Carbon::now()->toDateTimeString()
|
||||||
|
// ],
|
||||||
|
// [
|
||||||
|
// 'id' => 5,
|
||||||
|
// 'master_code' => 'Master Kelurahan',
|
||||||
|
// 'master_value' => 'Kelurahans',
|
||||||
|
// 'master_column' => 'nama',
|
||||||
|
// 'created_at' => Carbon::now()->toDateTimeString(),
|
||||||
|
// 'updated_at' => Carbon::now()->toDateTimeString()
|
||||||
|
// ],
|
||||||
|
// [
|
||||||
|
// 'id' => 6,
|
||||||
|
// 'master_code' => 'Master Alamat',
|
||||||
|
// 'master_value' => 'Alamats',
|
||||||
|
// 'master_column' => 'Alamat',
|
||||||
|
// 'created_at' => Carbon::now()->toDateTimeString(),
|
||||||
|
// 'updated_at' => Carbon::now()->toDateTimeString()
|
||||||
|
// ],
|
||||||
[
|
[
|
||||||
'id' => 1,
|
'id' => 7,
|
||||||
'master_code' => 'Master Agama',
|
'master_code' => 'Master Jenjang Pendidikan',
|
||||||
'master_value' => 'Agamas',
|
'master_value' => 'MasterJenjangPendidikans',
|
||||||
'master_column' => 'keterangan',
|
'master_column' => 'keterangan',
|
||||||
'created_at' => Carbon::now()->toDateTimeString(),
|
'created_at' => Carbon::now()->toDateTimeString(),
|
||||||
'updated_at' => Carbon::now()->toDateTimeString()
|
'updated_at' => Carbon::now()->toDateTimeString()
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'id' => 2,
|
'id' => 8,
|
||||||
'master_code' => 'Master Provinsi',
|
'master_code' => 'Master Disabilitas',
|
||||||
'master_value' => 'Provinsis',
|
'master_value' => 'MasterDisabilitas',
|
||||||
'master_column' => 'nama',
|
'master_column' => 'keterangan',
|
||||||
'created_at' => Carbon::now()->toDateTimeString(),
|
'created_at' => Carbon::now()->toDateTimeString(),
|
||||||
'updated_at' => Carbon::now()->toDateTimeString()
|
'updated_at' => Carbon::now()->toDateTimeString()
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'id' => 3,
|
'id' => 9,
|
||||||
'master_code' => 'Master Kabupaten',
|
'master_code' => 'Master Bantuan Pemerintah',
|
||||||
'master_value' => 'Kabupatens',
|
'master_value' => 'MasterBantuanPemerintahs',
|
||||||
'master_column' => 'nama',
|
'master_column' => 'keterangan',
|
||||||
'created_at' => Carbon::now()->toDateTimeString(),
|
'created_at' => Carbon::now()->toDateTimeString(),
|
||||||
'updated_at' => Carbon::now()->toDateTimeString()
|
'updated_at' => Carbon::now()->toDateTimeString()
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'id' => 4,
|
'id' => 10,
|
||||||
'master_code' => 'Master Kecamatan',
|
'master_code' => 'Master Pekerjaan',
|
||||||
'master_value' => 'Kecamatans',
|
'master_value' => 'MasterPekerjaans',
|
||||||
'master_column' => 'nama',
|
'master_column' => 'keterangan',
|
||||||
'created_at' => Carbon::now()->toDateTimeString(),
|
'created_at' => Carbon::now()->toDateTimeString(),
|
||||||
'updated_at' => Carbon::now()->toDateTimeString()
|
'updated_at' => Carbon::now()->toDateTimeString()
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'id' => 5,
|
'id' => 11,
|
||||||
'master_code' => 'Master Kelurahan',
|
'master_code' => 'Master Status Perkawinan',
|
||||||
'master_value' => 'Kelurahans',
|
'master_value' => 'MasterStatusPerkawinans',
|
||||||
'master_column' => 'nama',
|
'master_column' => 'keterangan',
|
||||||
'created_at' => Carbon::now()->toDateTimeString(),
|
'created_at' => Carbon::now()->toDateTimeString(),
|
||||||
'updated_at' => Carbon::now()->toDateTimeString()
|
'updated_at' => Carbon::now()->toDateTimeString()
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'id' => 6,
|
'id' => 12,
|
||||||
'master_code' => 'Master Alamat',
|
'master_code' => 'Master Status Tempat Tinggal',
|
||||||
'master_value' => 'Alamats',
|
'master_value' => 'MasterStatusTempatTinggals',
|
||||||
'master_column' => 'Alamat',
|
'master_column' => 'keterangan',
|
||||||
'created_at' => Carbon::now()->toDateTimeString(),
|
'created_at' => Carbon::now()->toDateTimeString(),
|
||||||
'updated_at' => Carbon::now()->toDateTimeString()
|
'updated_at' => Carbon::now()->toDateTimeString()
|
||||||
],
|
],
|
||||||
|
|
|
@ -0,0 +1,145 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
|
class PekerjaanSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
$data = [
|
||||||
|
[
|
||||||
|
'id' => 1,
|
||||||
|
'keterangan' => 'Belum Bekerja',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 2,
|
||||||
|
'keterangan' => 'Pegawai Negeri Sipil (PNS)',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 3,
|
||||||
|
'keterangan' => 'Pekerja Swasta',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 4,
|
||||||
|
'keterangan' => 'Insinyur',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 5,
|
||||||
|
'keterangan' => 'Tentara',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 6,
|
||||||
|
'keterangan' => 'Polisi',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 7,
|
||||||
|
'keterangan' => 'Guru',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 8,
|
||||||
|
'keterangan' => 'Dokter',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 9,
|
||||||
|
'keterangan' => 'Petani',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 10,
|
||||||
|
'keterangan' => 'Nelayan',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 11,
|
||||||
|
'keterangan' => 'Pedagang',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 12,
|
||||||
|
'keterangan' => 'Wiraswasta',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 13,
|
||||||
|
'keterangan' => 'IRT / MRT',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 14,
|
||||||
|
'keterangan' => 'Tukang Kayu',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 15,
|
||||||
|
'keterangan' => 'Tukang Las',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 16,
|
||||||
|
'keterangan' => 'Tukang Jahit',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 17,
|
||||||
|
'keterangan' => 'Tukang Batu',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 18,
|
||||||
|
'keterangan' => 'Buruh Bangunan',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 19,
|
||||||
|
'keterangan' => 'Buruh Pabrik',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 20,
|
||||||
|
'keterangan' => 'Buruh Tani',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 21,
|
||||||
|
'keterangan' => 'Penjaga Toko',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 22,
|
||||||
|
'keterangan' => 'Sopir',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 23,
|
||||||
|
'keterangan' => 'Supir Angkutan Umum',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 24,
|
||||||
|
'keterangan' => 'Tukang Sol Sepatu',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 25,
|
||||||
|
'keterangan' => 'Tukang Cuci',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 26,
|
||||||
|
'keterangan' => 'Pekerja Sosial',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 27,
|
||||||
|
'keterangan' => 'Mekanik',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 28,
|
||||||
|
'keterangan' => 'Pekerja IT',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 29,
|
||||||
|
'keterangan' => 'Seniman',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 30,
|
||||||
|
'keterangan' => 'Pengrajin',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 100,
|
||||||
|
'keterangan' => 'Lainnya',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
DB::table("mst_pekerjaans")->insert($data);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,107 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use App\Models\User;
|
||||||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
use Spatie\Permission\Models\Role;
|
||||||
|
|
||||||
|
class RespondenSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
// create new account 1
|
||||||
|
$user = User::create([
|
||||||
|
'nik' => "3204124512900001",
|
||||||
|
'name' => "ABDUL ROHMAH",
|
||||||
|
'email' => "abdul.rohmah@gmail.com",
|
||||||
|
'password' => bcrypt("password"),
|
||||||
|
'gender' => "Laki - Laki",
|
||||||
|
'place_of_birth' => "Jember",
|
||||||
|
'date_of_birth' => "1965-04-13",
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Create role for user
|
||||||
|
$role = Role::findOrFail(3); // Pengunjung
|
||||||
|
$user->assignRole($role);
|
||||||
|
|
||||||
|
// create new account 2
|
||||||
|
$user = User::create([
|
||||||
|
'nik' => "3204124512900002",
|
||||||
|
'name' => "MUSLIMAH",
|
||||||
|
'email' => "muslimah@gmail.com",
|
||||||
|
'password' => bcrypt("password"),
|
||||||
|
'gender' => "Perempuan",
|
||||||
|
'place_of_birth' => "Lumajang",
|
||||||
|
'date_of_birth' => "1969-07-01",
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Create role for user
|
||||||
|
$role = Role::findOrFail(3); // Pengunjung
|
||||||
|
$user->assignRole($role);
|
||||||
|
|
||||||
|
// create new account 3
|
||||||
|
$user = User::create([
|
||||||
|
'nik' => "3204124512900003",
|
||||||
|
'name' => "AHMAD KURNIAWAN",
|
||||||
|
'email' => "ahmad.kurniawan@gmail.com",
|
||||||
|
'password' => bcrypt("password"),
|
||||||
|
'gender' => "Laki - Laki",
|
||||||
|
'place_of_birth' => "Jember",
|
||||||
|
'date_of_birth' => "1990-01-25",
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Create role for user
|
||||||
|
$role = Role::findOrFail(3); // Pengunjung
|
||||||
|
$user->assignRole($role);
|
||||||
|
|
||||||
|
// create new account 4
|
||||||
|
$user = User::create([
|
||||||
|
'nik' => "3204124512900004",
|
||||||
|
'name' => "RUDI SAPUTRA",
|
||||||
|
'email' => "rudi.saputra@gmail.com",
|
||||||
|
'password' => bcrypt("password"),
|
||||||
|
'gender' => "Laki - Laki",
|
||||||
|
'place_of_birth' => "Jember",
|
||||||
|
'date_of_birth' => "2000-12-14",
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Create role for user
|
||||||
|
$role = Role::findOrFail(3); // Pengunjung
|
||||||
|
$user->assignRole($role);
|
||||||
|
|
||||||
|
// create new account 5
|
||||||
|
$user = User::create([
|
||||||
|
'nik' => "3204124512900005",
|
||||||
|
'name' => "FITRIANINGSIH",
|
||||||
|
'email' => "fitrianingsih@gmail.com",
|
||||||
|
'password' => bcrypt("password"),
|
||||||
|
'gender' => "Perempuan",
|
||||||
|
'place_of_birth' => "Jember",
|
||||||
|
'date_of_birth' => "2001-03-05",
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Create role for user
|
||||||
|
$role = Role::findOrFail(3); // Pengunjung
|
||||||
|
$user->assignRole($role);
|
||||||
|
|
||||||
|
// create new account 6
|
||||||
|
$user = User::create([
|
||||||
|
'nik' => "3204124512900006",
|
||||||
|
'name' => "SYAKILA NURAINI",
|
||||||
|
'email' => "syakila.nuraini@gmail.com",
|
||||||
|
'password' => bcrypt("password"),
|
||||||
|
'gender' => "Perempuan",
|
||||||
|
'place_of_birth' => "Jember",
|
||||||
|
'date_of_birth' => "2022-08-09",
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Create role for user
|
||||||
|
$role = Role::findOrFail(3); // Pengunjung
|
||||||
|
$user->assignRole($role);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
|
class StatusPerkawinanSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
$data = [
|
||||||
|
[
|
||||||
|
'id' => 1,
|
||||||
|
'keterangan' => 'Belum Kawin',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 2,
|
||||||
|
'keterangan' => 'Kawin',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 3,
|
||||||
|
'keterangan' => 'Cerai Hidup',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 4,
|
||||||
|
'keterangan' => 'Cerai Mati',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 100,
|
||||||
|
'keterangan' => 'Lainnya',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
DB::table("mst_status_perkawinans")->insert($data);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
|
class StatusTempatTinggalSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
$data = [
|
||||||
|
[
|
||||||
|
'id' => 1,
|
||||||
|
'keterangan' => 'Milik Sendiri',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 2,
|
||||||
|
'keterangan' => 'Sewa',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 3,
|
||||||
|
'keterangan' => 'Kontrak',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 4,
|
||||||
|
'keterangan' => 'Menumpang',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 100,
|
||||||
|
'keterangan' => 'Lainnya',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
DB::table("mst_status_tempat_tinggals")->insert($data);
|
||||||
|
}
|
||||||
|
}
|
|
@ -89,11 +89,51 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="sidebar-item">
|
<li class="sidebar-item">
|
||||||
<a href="{{ URL::to('master/master-provinsi') }}" class="sidebar-link">
|
<a href="{{ URL::to('master/master-jenjang-pendidikan') }}" class="sidebar-link">
|
||||||
<div class="round-16 d-flex align-items-center justify-content-center">
|
<div class="round-16 d-flex align-items-center justify-content-center">
|
||||||
<i class="ti ti-circle"></i>
|
<i class="ti ti-circle"></i>
|
||||||
</div>
|
</div>
|
||||||
<span class="hide-menu">Master Provinsi</span>
|
<span class="hide-menu">Master Jenjang Pendidikan</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="sidebar-item">
|
||||||
|
<a href="{{ URL::to('master/master-bantuan-pemerintah') }}" class="sidebar-link">
|
||||||
|
<div class="round-16 d-flex align-items-center justify-content-center">
|
||||||
|
<i class="ti ti-circle"></i>
|
||||||
|
</div>
|
||||||
|
<span class="hide-menu">Master Bantuan Pemerintah</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="sidebar-item">
|
||||||
|
<a href="{{ URL::to('master/master-status-perkawinan') }}" class="sidebar-link">
|
||||||
|
<div class="round-16 d-flex align-items-center justify-content-center">
|
||||||
|
<i class="ti ti-circle"></i>
|
||||||
|
</div>
|
||||||
|
<span class="hide-menu">Master Status Perkawinan</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="sidebar-item">
|
||||||
|
<a href="{{ URL::to('master/master-status-tempat-tinggal') }}" class="sidebar-link">
|
||||||
|
<div class="round-16 d-flex align-items-center justify-content-center">
|
||||||
|
<i class="ti ti-circle"></i>
|
||||||
|
</div>
|
||||||
|
<span class="hide-menu">Master Tempat Tinggal</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="sidebar-item">
|
||||||
|
<a href="{{ URL::to('master/master-disabilitas') }}" class="sidebar-link">
|
||||||
|
<div class="round-16 d-flex align-items-center justify-content-center">
|
||||||
|
<i class="ti ti-circle"></i>
|
||||||
|
</div>
|
||||||
|
<span class="hide-menu">Master Disabilitas</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="sidebar-item">
|
||||||
|
<a href="{{ URL::to('master/master-pekerjaan') }}" class="sidebar-link">
|
||||||
|
<div class="round-16 d-flex align-items-center justify-content-center">
|
||||||
|
<i class="ti ti-circle"></i>
|
||||||
|
</div>
|
||||||
|
<span class="hide-menu">Master Pekerjaan</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="sidebar-item">
|
<li class="sidebar-item">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
@include('includes.head')
|
@include('includes.head')
|
||||||
<title>SIMC | @yield('title')</title>
|
<title>Survey SDGS | @yield('title')</title>
|
||||||
|
|
||||||
@stack('styles')
|
@stack('styles')
|
||||||
<!-- Scripts Start -->
|
<!-- Scripts Start -->
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
<td class="text-center">{{ $_person->users->name }}</td>
|
<td class="text-center">{{ $_person->users->name }}</td>
|
||||||
<td class="text-center">{{ $_person->users->gender }}</td>
|
<td class="text-center">{{ $_person->users->gender }}</td>
|
||||||
<td class="text-center">{{ $_person->users->place_of_birth }}</td>
|
<td class="text-center">{{ $_person->users->place_of_birth }}</td>
|
||||||
<td class="text-center">{{ $_person->users->date_of_birth }}</td>
|
<td class="text-center">{{ Carbon\Carbon::parse($_person->users->date_of_birth)->age }}</td>
|
||||||
@php
|
@php
|
||||||
$questionAnswers = App\Models\QuestionAnswers::where(
|
$questionAnswers = App\Models\QuestionAnswers::where(
|
||||||
'survey_id',
|
'survey_id',
|
||||||
|
|
|
@ -101,62 +101,64 @@
|
||||||
@elseif (
|
@elseif (
|
||||||
$questionSurveys->type == 'Master' &&
|
$questionSurveys->type == 'Master' &&
|
||||||
json_decode($questionSurveys->questionDetails->question_value)[0] == 'Alamats')
|
json_decode($questionSurveys->questionDetails->question_value)[0] == 'Alamats')
|
||||||
<div class="col-lg-12 row">
|
<div class="col-lg-12">
|
||||||
<div class="mt-3 col-lg-6">
|
<div class="row">
|
||||||
@php
|
<div class="mt-3 col-lg-6">
|
||||||
// $master = 'App\Models\Master\\' . json_decode($questionSurveys->questionDetails->question_value)[0];
|
@php
|
||||||
$master = json_decode(
|
// $master = 'App\Models\Master\\' . json_decode($questionSurveys->questionDetails->question_value)[0];
|
||||||
$questionSurveys->questionDetails->question_value,
|
$master = json_decode(
|
||||||
)[0];
|
$questionSurveys->questionDetails->question_value,
|
||||||
$prov_unique_id =
|
)[0];
|
||||||
'question-' . $questionSurveys->id . '-answer-provinsi';
|
$prov_unique_id =
|
||||||
@endphp
|
'question-' . $questionSurveys->id . '-answer-provinsi';
|
||||||
<select class="form-select" id="{{ $prov_unique_id }}"
|
@endphp
|
||||||
name="question[{{ $questionSurveys->id }}][answer]" style="width:100%;"
|
<select class="form-select" id="{{ $prov_unique_id }}"
|
||||||
required>
|
name="question[{{ $questionSurveys->id }}][answer]" style="width:100%;"
|
||||||
</select>
|
required>
|
||||||
</div>
|
</select>
|
||||||
<div class="mt-3 col-lg-6">
|
</div>
|
||||||
@php
|
<div class="mt-3 col-lg-6">
|
||||||
// $master = 'App\Models\Master\\' . json_decode($questionSurveys->questionDetails->question_value)[0];
|
@php
|
||||||
$master = json_decode(
|
// $master = 'App\Models\Master\\' . json_decode($questionSurveys->questionDetails->question_value)[0];
|
||||||
$questionSurveys->questionDetails->question_value,
|
$master = json_decode(
|
||||||
)[0];
|
$questionSurveys->questionDetails->question_value,
|
||||||
$kab_unique_id =
|
)[0];
|
||||||
'question-' . $questionSurveys->id . '-answer-kabupaten';
|
$kab_unique_id =
|
||||||
@endphp
|
'question-' . $questionSurveys->id . '-answer-kabupaten';
|
||||||
<select class="form-select" id="{{ $kab_unique_id }}"
|
@endphp
|
||||||
name="question[{{ $questionSurveys->id }}][answer]" style="width:100%;"
|
<select class="form-select" id="{{ $kab_unique_id }}"
|
||||||
required>
|
name="question[{{ $questionSurveys->id }}][answer]" style="width:100%;"
|
||||||
</select>
|
required>
|
||||||
</div>
|
</select>
|
||||||
<div class="mt-3 col-lg-6">
|
</div>
|
||||||
@php
|
<div class="mt-3 col-lg-6">
|
||||||
// $master = 'App\Models\Master\\' . json_decode($questionSurveys->questionDetails->question_value)[0];
|
@php
|
||||||
$master = json_decode(
|
// $master = 'App\Models\Master\\' . json_decode($questionSurveys->questionDetails->question_value)[0];
|
||||||
$questionSurveys->questionDetails->question_value,
|
$master = json_decode(
|
||||||
)[0];
|
$questionSurveys->questionDetails->question_value,
|
||||||
$kec_unique_id =
|
)[0];
|
||||||
'question-' . $questionSurveys->id . '-answer-kecamatan';
|
$kec_unique_id =
|
||||||
@endphp
|
'question-' . $questionSurveys->id . '-answer-kecamatan';
|
||||||
<select class="form-select" id="{{ $kec_unique_id }}"
|
@endphp
|
||||||
name="question[{{ $questionSurveys->id }}][answer]" style="width:100%;"
|
<select class="form-select" id="{{ $kec_unique_id }}"
|
||||||
required>
|
name="question[{{ $questionSurveys->id }}][answer]" style="width:100%;"
|
||||||
</select>
|
required>
|
||||||
</div>
|
</select>
|
||||||
<div class="mt-3 col-lg-6">
|
</div>
|
||||||
@php
|
<div class="mt-3 col-lg-6">
|
||||||
// $master = 'App\Models\Master\\' . json_decode($questionSurveys->questionDetails->question_value)[0];
|
@php
|
||||||
$master = json_decode(
|
// $master = 'App\Models\Master\\' . json_decode($questionSurveys->questionDetails->question_value)[0];
|
||||||
$questionSurveys->questionDetails->question_value,
|
$master = json_decode(
|
||||||
)[0];
|
$questionSurveys->questionDetails->question_value,
|
||||||
$kel_unique_id =
|
)[0];
|
||||||
'question-' . $questionSurveys->id . '-answer-kelurahan';
|
$kel_unique_id =
|
||||||
@endphp
|
'question-' . $questionSurveys->id . '-answer-kelurahan';
|
||||||
<select class="form-select" id="{{ $kel_unique_id }}"
|
@endphp
|
||||||
name="question[{{ $questionSurveys->id }}][answer]" style="width:100%;"
|
<select class="form-select" id="{{ $kel_unique_id }}"
|
||||||
required>
|
name="question[{{ $questionSurveys->id }}][answer]" style="width:100%;"
|
||||||
</select>
|
required>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -0,0 +1,62 @@
|
||||||
|
@extends('layouts.app')
|
||||||
|
@section('title', 'Master Bantuan Pemerintah')
|
||||||
|
@section('content')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 d-flex align-items-stretch">
|
||||||
|
<div class="card w-100">
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<div class="d-flex align-items-stretch">
|
||||||
|
<h5 class="card-title fw-semibold mb-4">Master Bantuan Pemerintah</h5>
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-responsive table-bordered text-nowrap mb-0 align-middle">
|
||||||
|
<thead class="text-dark fs-4">
|
||||||
|
<tr>
|
||||||
|
<th class="border-bottom-0" width="65px">
|
||||||
|
<h6 class="fw-semibold mb-0 text-center">#</h6>
|
||||||
|
</th>
|
||||||
|
<th class="border-bottom-0" style="max-width: 100px;">
|
||||||
|
<h6 class="fw-semibold mb-0">Kode Master</h6>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@forelse ($data as $_data)
|
||||||
|
<tr>
|
||||||
|
<td class="border-bottom-0 text-center">
|
||||||
|
<span
|
||||||
|
class="fw-normal mb-0">{{ ($data->currentPage() - 1) * $data->perPage() + $loop->index + 1 }}</span>
|
||||||
|
</td>
|
||||||
|
<td class="border-bottom-0" style="max-width: 100px;">
|
||||||
|
<span
|
||||||
|
class="fw-normal mb-1 badge text-bg-light">{{ $_data->keterangan }}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@empty
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
Data master belum Tersedia.
|
||||||
|
</div>
|
||||||
|
@endforelse
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{{-- Pagination --}}
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
{!! $data->links('includes.custom-pagination') !!}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
@if (Session::has('datas-message'))
|
||||||
|
<script>
|
||||||
|
Swal.fire({
|
||||||
|
text: "{{ Session::get('datas-message')['msg'] }}",
|
||||||
|
icon: "{{ Session::get('datas-message')['type'] }}",
|
||||||
|
timer: 2500
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endif
|
||||||
|
@stop
|
|
@ -0,0 +1,62 @@
|
||||||
|
@extends('layouts.app')
|
||||||
|
@section('title', 'Master Disabilitas')
|
||||||
|
@section('content')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 d-flex align-items-stretch">
|
||||||
|
<div class="card w-100">
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<div class="d-flex align-items-stretch">
|
||||||
|
<h5 class="card-title fw-semibold mb-4">Master Disabilitas</h5>
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-responsive table-bordered text-nowrap mb-0 align-middle">
|
||||||
|
<thead class="text-dark fs-4">
|
||||||
|
<tr>
|
||||||
|
<th class="border-bottom-0" width="65px">
|
||||||
|
<h6 class="fw-semibold mb-0 text-center">#</h6>
|
||||||
|
</th>
|
||||||
|
<th class="border-bottom-0" style="max-width: 100px;">
|
||||||
|
<h6 class="fw-semibold mb-0">Kode Master</h6>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@forelse ($data as $_data)
|
||||||
|
<tr>
|
||||||
|
<td class="border-bottom-0 text-center">
|
||||||
|
<span
|
||||||
|
class="fw-normal mb-0">{{ ($data->currentPage() - 1) * $data->perPage() + $loop->index + 1 }}</span>
|
||||||
|
</td>
|
||||||
|
<td class="border-bottom-0" style="max-width: 100px;">
|
||||||
|
<span
|
||||||
|
class="fw-normal mb-1 badge text-bg-light">{{ $_data->keterangan }}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@empty
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
Data master belum Tersedia.
|
||||||
|
</div>
|
||||||
|
@endforelse
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{{-- Pagination --}}
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
{!! $data->links('includes.custom-pagination') !!}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
@if (Session::has('datas-message'))
|
||||||
|
<script>
|
||||||
|
Swal.fire({
|
||||||
|
text: "{{ Session::get('datas-message')['msg'] }}",
|
||||||
|
icon: "{{ Session::get('datas-message')['type'] }}",
|
||||||
|
timer: 2500
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endif
|
||||||
|
@stop
|
|
@ -0,0 +1,62 @@
|
||||||
|
@extends('layouts.app')
|
||||||
|
@section('title', 'Master Jenjang Pendidikan')
|
||||||
|
@section('content')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 d-flex align-items-stretch">
|
||||||
|
<div class="card w-100">
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<div class="d-flex align-items-stretch">
|
||||||
|
<h5 class="card-title fw-semibold mb-4">Master Jenjang Pendidikan</h5>
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-responsive table-bordered text-nowrap mb-0 align-middle">
|
||||||
|
<thead class="text-dark fs-4">
|
||||||
|
<tr>
|
||||||
|
<th class="border-bottom-0" width="65px">
|
||||||
|
<h6 class="fw-semibold mb-0 text-center">#</h6>
|
||||||
|
</th>
|
||||||
|
<th class="border-bottom-0" style="max-width: 100px;">
|
||||||
|
<h6 class="fw-semibold mb-0">Kode Master</h6>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@forelse ($data as $_data)
|
||||||
|
<tr>
|
||||||
|
<td class="border-bottom-0 text-center">
|
||||||
|
<span
|
||||||
|
class="fw-normal mb-0">{{ ($data->currentPage() - 1) * $data->perPage() + $loop->index + 1 }}</span>
|
||||||
|
</td>
|
||||||
|
<td class="border-bottom-0" style="max-width: 100px;">
|
||||||
|
<span
|
||||||
|
class="fw-normal mb-1 badge text-bg-light">{{ $_data->keterangan }}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@empty
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
Data master belum Tersedia.
|
||||||
|
</div>
|
||||||
|
@endforelse
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{{-- Pagination --}}
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
{!! $data->links('includes.custom-pagination') !!}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
@if (Session::has('datas-message'))
|
||||||
|
<script>
|
||||||
|
Swal.fire({
|
||||||
|
text: "{{ Session::get('datas-message')['msg'] }}",
|
||||||
|
icon: "{{ Session::get('datas-message')['type'] }}",
|
||||||
|
timer: 2500
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endif
|
||||||
|
@stop
|
|
@ -61,6 +61,10 @@
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{{-- Pagination --}}
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
{!! $management_master->links('includes.custom-pagination') !!}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -0,0 +1,62 @@
|
||||||
|
@extends('layouts.app')
|
||||||
|
@section('title', 'Master Disabilitas')
|
||||||
|
@section('content')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 d-flex align-items-stretch">
|
||||||
|
<div class="card w-100">
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<div class="d-flex align-items-stretch">
|
||||||
|
<h5 class="card-title fw-semibold mb-4">Master Disabilitas</h5>
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-responsive table-bordered text-nowrap mb-0 align-middle">
|
||||||
|
<thead class="text-dark fs-4">
|
||||||
|
<tr>
|
||||||
|
<th class="border-bottom-0" width="65px">
|
||||||
|
<h6 class="fw-semibold mb-0 text-center">#</h6>
|
||||||
|
</th>
|
||||||
|
<th class="border-bottom-0" style="max-width: 100px;">
|
||||||
|
<h6 class="fw-semibold mb-0">Kode Master</h6>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@forelse ($data as $_data)
|
||||||
|
<tr>
|
||||||
|
<td class="border-bottom-0 text-center">
|
||||||
|
<span
|
||||||
|
class="fw-normal mb-0">{{ ($data->currentPage() - 1) * $data->perPage() + $loop->index + 1 }}</span>
|
||||||
|
</td>
|
||||||
|
<td class="border-bottom-0" style="max-width: 100px;">
|
||||||
|
<span
|
||||||
|
class="fw-normal mb-1 badge text-bg-light">{{ $_data->keterangan }}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@empty
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
Data master belum Tersedia.
|
||||||
|
</div>
|
||||||
|
@endforelse
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{{-- Pagination --}}
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
{!! $data->links('includes.custom-pagination') !!}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
@if (Session::has('datas-message'))
|
||||||
|
<script>
|
||||||
|
Swal.fire({
|
||||||
|
text: "{{ Session::get('datas-message')['msg'] }}",
|
||||||
|
icon: "{{ Session::get('datas-message')['type'] }}",
|
||||||
|
timer: 2500
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endif
|
||||||
|
@stop
|
|
@ -0,0 +1,62 @@
|
||||||
|
@extends('layouts.app')
|
||||||
|
@section('title', 'Master Pekerjaan')
|
||||||
|
@section('content')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 d-flex align-items-stretch">
|
||||||
|
<div class="card w-100">
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<div class="d-flex align-items-stretch">
|
||||||
|
<h5 class="card-title fw-semibold mb-4">Master Pekerjaan</h5>
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-responsive table-bordered text-nowrap mb-0 align-middle">
|
||||||
|
<thead class="text-dark fs-4">
|
||||||
|
<tr>
|
||||||
|
<th class="border-bottom-0" width="65px">
|
||||||
|
<h6 class="fw-semibold mb-0 text-center">#</h6>
|
||||||
|
</th>
|
||||||
|
<th class="border-bottom-0" style="max-width: 100px;">
|
||||||
|
<h6 class="fw-semibold mb-0">Kode Master</h6>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@forelse ($data as $_data)
|
||||||
|
<tr>
|
||||||
|
<td class="border-bottom-0 text-center">
|
||||||
|
<span
|
||||||
|
class="fw-normal mb-0">{{ ($data->currentPage() - 1) * $data->perPage() + $loop->index + 1 }}</span>
|
||||||
|
</td>
|
||||||
|
<td class="border-bottom-0" style="max-width: 100px;">
|
||||||
|
<span
|
||||||
|
class="fw-normal mb-1 badge text-bg-light">{{ $_data->keterangan }}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@empty
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
Data master belum Tersedia.
|
||||||
|
</div>
|
||||||
|
@endforelse
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{{-- Pagination --}}
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
{!! $data->links('includes.custom-pagination') !!}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
@if (Session::has('datas-message'))
|
||||||
|
<script>
|
||||||
|
Swal.fire({
|
||||||
|
text: "{{ Session::get('datas-message')['msg'] }}",
|
||||||
|
icon: "{{ Session::get('datas-message')['type'] }}",
|
||||||
|
timer: 2500
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endif
|
||||||
|
@stop
|
|
@ -0,0 +1,62 @@
|
||||||
|
@extends('layouts.app')
|
||||||
|
@section('title', 'Master Disabilitas')
|
||||||
|
@section('content')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 d-flex align-items-stretch">
|
||||||
|
<div class="card w-100">
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<div class="d-flex align-items-stretch">
|
||||||
|
<h5 class="card-title fw-semibold mb-4">Master Disabilitas</h5>
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-responsive table-bordered text-nowrap mb-0 align-middle">
|
||||||
|
<thead class="text-dark fs-4">
|
||||||
|
<tr>
|
||||||
|
<th class="border-bottom-0" width="65px">
|
||||||
|
<h6 class="fw-semibold mb-0 text-center">#</h6>
|
||||||
|
</th>
|
||||||
|
<th class="border-bottom-0" style="max-width: 100px;">
|
||||||
|
<h6 class="fw-semibold mb-0">Kode Master</h6>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@forelse ($data as $_data)
|
||||||
|
<tr>
|
||||||
|
<td class="border-bottom-0 text-center">
|
||||||
|
<span
|
||||||
|
class="fw-normal mb-0">{{ ($data->currentPage() - 1) * $data->perPage() + $loop->index + 1 }}</span>
|
||||||
|
</td>
|
||||||
|
<td class="border-bottom-0" style="max-width: 100px;">
|
||||||
|
<span
|
||||||
|
class="fw-normal mb-1 badge text-bg-light">{{ $_data->keterangan }}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@empty
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
Data master belum Tersedia.
|
||||||
|
</div>
|
||||||
|
@endforelse
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{{-- Pagination --}}
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
{!! $data->links('includes.custom-pagination') !!}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
@if (Session::has('datas-message'))
|
||||||
|
<script>
|
||||||
|
Swal.fire({
|
||||||
|
text: "{{ Session::get('datas-message')['msg'] }}",
|
||||||
|
icon: "{{ Session::get('datas-message')['type'] }}",
|
||||||
|
timer: 2500
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endif
|
||||||
|
@stop
|
|
@ -8,10 +8,16 @@ use App\Http\Controllers\Admins\RespondenController;
|
||||||
use App\Http\Controllers\Admins\Users\UserController;
|
use App\Http\Controllers\Admins\Users\UserController;
|
||||||
use App\Http\Controllers\Master\ManagementMasterController;
|
use App\Http\Controllers\Master\ManagementMasterController;
|
||||||
use App\Http\Controllers\Master\MasterAgamaController;
|
use App\Http\Controllers\Master\MasterAgamaController;
|
||||||
|
use App\Http\Controllers\Master\MasterBantuanPemerintahController;
|
||||||
|
use App\Http\Controllers\Master\MasterDisabilitasController;
|
||||||
|
use App\Http\Controllers\Master\MasterJenjangPendidikanController;
|
||||||
use App\Http\Controllers\Master\MasterKabupatenController;
|
use App\Http\Controllers\Master\MasterKabupatenController;
|
||||||
use App\Http\Controllers\Master\MasterKecamatanController;
|
use App\Http\Controllers\Master\MasterKecamatanController;
|
||||||
use App\Http\Controllers\Master\MasterKelurahanController;
|
use App\Http\Controllers\Master\MasterKelurahanController;
|
||||||
|
use App\Http\Controllers\Master\MasterPekerjaanController;
|
||||||
use App\Http\Controllers\Master\MasterProvinsiController;
|
use App\Http\Controllers\Master\MasterProvinsiController;
|
||||||
|
use App\Http\Controllers\Master\MasterStatusPerkawinanController;
|
||||||
|
use App\Http\Controllers\Master\MasterStatusTempatTinggalController;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use Illuminate\Support\Facades\Redirect;
|
use Illuminate\Support\Facades\Redirect;
|
||||||
|
|
||||||
|
@ -65,15 +71,27 @@ Route::group(['prefix' => 'master', 'middleware' => ['role:Admin']], function ()
|
||||||
Route::put('management-master/update/{id}', [ManagementMasterController::class, 'update'])->name('master.management-master.update');
|
Route::put('management-master/update/{id}', [ManagementMasterController::class, 'update'])->name('master.management-master.update');
|
||||||
|
|
||||||
// Master Agama
|
// Master Agama
|
||||||
Route::get('master-agama', [MasterAgamaController::class, 'index'])->name('master');
|
Route::get('master-agama', [MasterAgamaController::class, 'index'])->name('master.master-agama');
|
||||||
|
// Master Jenjang Pendidikan
|
||||||
|
Route::get('master-jenjang-pendidikan', [MasterJenjangPendidikanController::class, 'index'])->name('master.master-jenjang-pendidikan');
|
||||||
|
// Master Disabilitas
|
||||||
|
Route::get('master-disabilitas', [MasterDisabilitasController::class, 'index'])->name('master.master-disabilitas');
|
||||||
|
// Master Bantuan Pemerintah
|
||||||
|
Route::get('master-bantuan-pemerintah', [MasterBantuanPemerintahController::class, 'index'])->name('master.master-bantuan-pemerintah');
|
||||||
|
// Master Pekerjaan
|
||||||
|
Route::get('master-pekerjaan', [MasterPekerjaanController::class, 'index'])->name('master.master-pekerjaan');
|
||||||
|
// Master Status Perkawinan
|
||||||
|
Route::get('master-status-perkawinan', [MasterStatusPerkawinanController::class, 'index'])->name('master.master-status-perkawinan');
|
||||||
|
// Master Status Tempat Tinggal
|
||||||
|
Route::get('master-status-tempat-tinggal', [MasterStatusTempatTinggalController::class, 'index'])->name('master.master-status-tempat-tinggal');
|
||||||
// Master Provinsi
|
// Master Provinsi
|
||||||
Route::get('master-provinsi', [MasterProvinsiController::class, 'index'])->name('master');
|
Route::get('master-provinsi', [MasterProvinsiController::class, 'index'])->name('master.master-provinsi');
|
||||||
// Master Kabupaten
|
// Master Kabupaten
|
||||||
Route::get('master-kabupaten', [MasterKabupatenController::class, 'index'])->name('master');
|
Route::get('master-kabupaten', [MasterKabupatenController::class, 'index'])->name('master.master-kabupaten');
|
||||||
// Master Kecamatan
|
// Master Kecamatan
|
||||||
Route::get('master-kecamatan', [MasterKecamatanController::class, 'index'])->name('master');
|
Route::get('master-kecamatan', [MasterKecamatanController::class, 'index'])->name('master.master-kecamatan');
|
||||||
// Master Kelurahan
|
// Master Kelurahan
|
||||||
Route::get('master-kelurahan', [MasterKelurahanController::class, 'index'])->name('master');
|
Route::get('master-kelurahan', [MasterKelurahanController::class, 'index'])->name('master.master-kelurahan');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Auth with Admin && Staff
|
// Auth with Admin && Staff
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue