From d19c5e71b17fc7cf09dc90432588a816ecce38e5 Mon Sep 17 00:00:00 2001 From: Andi Fahruddin Akas Date: Thu, 19 Dec 2024 07:39:08 +0800 Subject: [PATCH] Rilis v2412.0.2 --- .gitignore | 5 + ...or.php => AnalisisIndikatorController.php} | 7 +- ...ori.php => AnalisisKategoriController.php} | 6 +- ....php => AnalisisKlasifikasiController.php} | 8 +- ...oran.php => AnalisisLaporanController.php} | 32 +- ...aster.php => AnalisisMasterController.php} | 21 +- ...er.php => AnalisisParameterController.php} | 11 +- ...iode.php => AnalisisPeriodeController.php} | 8 +- ....php => AnalisisResponChildController.php} | 8 +- ...espon.php => AnalisisResponController.php} | 23 +- ...=> AnalisisStatistikJawabanController.php} | 24 +- .../Providers/AnalisisServiceProvider.php | 82 + Modules/Analisis/Routes/web.php | 171 +- .../form.blade.php | 2 +- .../index.blade.php | 2 +- .../form.blade.php | 0 .../index.blade.php | 2 +- .../form.blade.php | 0 .../index.blade.php | 2 +- .../ajax_multi.blade.php | 0 .../form.blade.php | 2 +- .../form_cetak.blade.php | 0 .../index.blade.php | 2 +- .../table_print.blade.php | 0 .../ttd_pamong.blade.php | 0 .../Views/{analisis => master}/form.blade.php | 0 .../{analisis => master}/import.blade.php | 0 .../import_gform.blade.php | 0 .../{analisis => master}/index.blade.php | 0 .../Views/{analisis => master}/menu.blade.php | 0 .../menu_default.blade.php | 2 +- .../form.blade.php | 0 .../index.blade.php | 2 +- .../form.blade.php | 0 .../index.blade.php | 2 +- .../child/form.blade.php | 0 .../form.blade.php | 2 +- .../import/aturan_unduh.blade.php | 0 .../import/data_ajax.blade.php | 0 .../import/data_unduh.blade.php | 0 .../import/impor_bdt.blade.php | 0 .../import/import.blade.php | 0 .../index.blade.php | 2 +- .../index.blade.php | 2 +- .../parameter/grafik_table.blade.php | 2 +- .../parameter/subjek_print.blade.php | 0 .../parameter/subjek_table.blade.php | 2 +- .../table_print.blade.php | 0 Modules/Analisis/composer.json | 5 +- .../BackEnd/AnjunganBaseController.php} | 17 +- .../AnjunganController.php} | 11 +- .../AnjunganMenuController.php} | 13 +- .../AnjunganPengaturanController.php} | 11 +- .../AnjunganBerandaController.php} | 4 +- .../AnjunganController.php} | 4 +- .../AnjunganSuratController.php} | 12 +- .../Http/Controllers/Surat_anjungan.php | 131 - .../Providers/AnjunganServiceProvider.php | 95 + Modules/Anjungan/Routes/web.php | 61 +- .../Views/assets}/css/bootstrap.min.css | 0 .../Views/assets}/css/color/casual.css | 0 .../Views/assets}/css/color/nature.css | 0 .../Views/assets}/css/color/travel.css | 0 .../Anjungan/Views/assets}/css/darkmode.css | 0 .../Anjungan/Views/assets}/css/default.css | 0 .../Anjungan/Views/assets}/css/screen.css | 0 .../Anjungan/Views/assets}/css/style.css | 0 .../Anjungan/Views/assets}/images/bg.jpg | Bin .../Anjungan/Views/assets}/images/home.svg | 0 .../Views/assets}/images/icon/absen.png | Bin .../Views/assets}/images/icon/aparatur.png | Bin .../Views/assets}/images/icon/browserweb.png | Bin .../Views/assets}/images/icon/bukutamu.png | Bin .../Views/assets}/images/icon/camera.png | Bin .../Views/assets}/images/icon/dark.png | Bin .../Views/assets}/images/icon/infopublik.png | Bin .../Views/assets}/images/icon/light.png | Bin .../Views/assets}/images/icon/mandiri.png | Bin .../Views/assets}/images/icon/mandiri2.png | Bin .../Views/assets}/images/icon/maximize.png | Bin .../Views/assets}/images/icon/minimize.png | Bin .../Views/assets}/images/icon/pembangunan.png | Bin .../Views/assets}/images/icon/pengaduan.png | Bin .../Views/assets}/images/icon/peta.png | Bin .../Views/assets}/images/icon/statistik.png | Bin .../Views/assets}/images/icon/warna.png | Bin .../Views/assets}/images/icon/website.png | Bin .../Anjungan/Views/assets}/images/idm.svg | 0 .../Views/assets}/images/kehadiran.svg | 0 .../Views/assets}/images/keuangan.svg | 0 .../Anjungan/Views/assets}/images/lapak.svg | 0 .../Anjungan/Views/assets}/images/mandiri.svg | 0 .../Anjungan/Views/assets}/images/menu.png | Bin .../Anjungan/Views/assets}/images/mode.svg | 0 .../Views/assets}/images/perangkat.svg | 0 .../Anjungan/Views/assets}/images/peta.svg | 0 .../Anjungan/Views/assets}/images/public.svg | 0 .../Views/assets}/images/statistik.svg | 0 .../Anjungan/Views/assets}/images/tamu.svg | 0 .../Views/assets}/js/bootstrap.bundle.min.js | 0 .../Anjungan/Views/assets}/js/flickity.js | 0 .../Anjungan/Views/assets}/js/jquery.min.js | 0 .../Anjungan/Views/assets}/js/support.js | 0 .../anjungan/form.blade.php | 0 .../anjungan/index.blade.php | 2 +- .../anjungan/peringatan.blade.php | 0 .../menu}/form.blade.php | 0 .../menu}/index.blade.php | 0 .../pengaturan}/index.blade.php | 0 .../beranda/content.blade.php | 2 +- .../beranda/index.blade.php | 0 .../{anjungan => frontend}/index.blade.php | 46 +- .../{anjungan => frontend}/potrait.blade.php | 0 .../surat/buat.blade.php | 2 +- .../surat/form.blade.php | 2 +- .../surat/permohonan.blade.php | 2 +- Modules/Anjungan/composer.json | 3 +- Modules/Anjungan/module.json | 2 +- .../BackEnd/AnjunganBaseController.php | 11 +- .../BackEnd/KeperluanController.php | 146 + .../BackEnd/KepuasanController.php | 139 + .../BackEnd/PertanyaanController.php | 146 + .../Controllers/BackEnd/TamuController.php | 235 ++ .../FrontEnd/BukuTamuController.php | 198 + .../Http/Controllers}/index.html | 0 Modules/BukuTamu/Models/KeperluanModel.php | 70 + Modules/BukuTamu/Models/KepuasanModel.php | 100 + Modules/BukuTamu/Models/PertanyaanModel.php | 60 + Modules/BukuTamu/Models/TamuModel.php | 117 + .../Config => BukuTamu/Models}/index.html | 0 .../Providers/BukuTamuServiceProvider.php | 95 + .../BukuTamu/Routes}/index.html | 0 Modules/BukuTamu/Routes/web.php | 85 + Modules/BukuTamu/Views/.gitkeep | 0 .../Views/assets}/css/bootstrap.min.css | 0 .../Views/assets}/css/plugins.bundle.css | 0 .../BukuTamu/Views/assets}/css/screen.css | 0 .../BukuTamu/Views/assets}/css/style.css | 0 .../Views/assets}/images/background.jpg | Bin .../BukuTamu/Views/assets}/images/ebook.png | Bin .../BukuTamu/Views/assets}/images/favicon.ico | Bin .../Views/assets}/images/header-bg-dark.png | Bin .../Views/assets}/images/header-bg.jpg | Bin .../BukuTamu/Views/assets}/images/intro.png | Bin .../BukuTamu/Views/assets}/images/logo.png | Bin .../Views/assets}/js/plugins.bundle.js | 0 .../BukuTamu/Views/assets}/js/support.js | 0 .../Views/backend}/keperluan/form.blade.php | 0 .../Views/backend}/keperluan/index.blade.php | 0 .../Views/backend}/kepuasan/index.blade.php | 0 .../Views/backend}/kepuasan/show.blade.php | 0 .../Views/backend}/pertanyaan/form.blade.php | 0 .../Views/backend}/pertanyaan/index.blade.php | 0 .../Views/backend}/tamu/cetak.blade.php | 0 .../Views/backend}/tamu/form.blade.php | 0 .../Views/backend}/tamu/index.blade.php | 0 .../BukuTamu/Views/frontend}/index.blade.php | 12 +- .../Views/frontend}/kepuasan.blade.php | 2 +- .../Views/frontend}/pertanyaan.blade.php | 2 +- .../Views/frontend}/registrasi.blade.php | 2 +- Modules/BukuTamu/Views/index.html | 10 + Modules/BukuTamu/composer.json | 29 + Modules/BukuTamu/index.html | 10 + Modules/BukuTamu/module.json | 10 + Modules/Kehadiran/Config/app.php | 48 + Modules/Kehadiran/Config/index.html | 10 + Modules/Kehadiran/Helpers/index.html | 10 + .../Kehadiran/Helpers/kehadiran_helper.php | 91 + .../BackEnd/AlasanKeluarController.php | 164 + .../BackEnd/HariLiburController.php | 209 + .../BackEnd/JamKerjaController.php | 149 + .../BackEnd/PengaduanController.php | 144 + .../BackEnd/RekapitulasiController.php | 139 + .../FrontEnd/PerangkatController.php | 263 ++ Modules/Kehadiran/Http/Controllers/index.html | 10 + Modules/Kehadiran/Models/AlasanKeluar.php | 69 + Modules/Kehadiran/Models/HariLibur.php | 72 + Modules/Kehadiran/Models/JamKerja.php | 128 + Modules/Kehadiran/Models/Kehadiran.php | 119 + .../Kehadiran/Models/KehadiranPengaduan.php | 96 + Modules/Kehadiran/Models/index.html | 10 + .../Providers/KehadiranServiceProvider.php | 92 + Modules/Kehadiran/Routes/index.html | 10 + Modules/Kehadiran/Routes/web.php | 94 + Modules/Kehadiran/Views/.gitkeep | 0 .../Kehadiran/Views/assets/css/style.css | 1 - .../Kehadiran/Views/assets/img}/bg.jpg | Bin .../backend}/alasan_keluar/form.blade.php | 0 .../backend}/alasan_keluar/index.blade.php | 0 .../Views/backend}/hari_libur/form.blade.php | 0 .../Views/backend}/hari_libur/index.blade.php | 0 .../Kehadiran/Views/backend/index.blade.php | 1 + .../Views/backend}/jam_kerja/form.blade.php | 0 .../Views/backend}/jam_kerja/index.blade.php | 0 .../Views/backend}/pengaduan/form.blade.php | 0 .../Views/backend}/pengaduan/index.blade.php | 0 .../backend}/rekapitulasi/index.blade.php | 0 .../Kehadiran/Views/frontend}/index.blade.php | 4 +- .../Views/frontend}/layouts/index.blade.php | 18 +- .../Kehadiran/Views/frontend}/left.blade.php | 0 .../Kehadiran/Views/frontend}/masuk.blade.php | 4 +- Modules/Kehadiran/Views/index.html | 10 + Modules/Kehadiran/composer.json | 29 + Modules/Kehadiran/index.html | 10 + Modules/Kehadiran/module.json | 10 + .../LogFormatter.php} | 12 +- app/Libraries/LogViewer.php | 425 +++ .../Libraries/ShortcutModule.php | 84 +- app/Models/BukuKeperluan.php | 433 --- app/Models/BukuKepuasan.php | 425 --- app/Models/BukuTamu.php | 393 -- app/Models/HariLibur.php | 401 -- app/Models/JamKerja.php | 393 -- app/Models/Kehadiran.php | 401 -- app/Models/Komentar.php | 2 +- app/Models/Shortcut.php | 2 +- app/Providers/AppServiceProvider.php | 74 +- .../SettingAplikasiRepository.php} | 108 +- app/Repositories/index.html | 10 + .../install/CreateGrupAksesService.php | 20 +- app/Traits/Migrator.php | 2 +- .../StatusTrait.php} | 12 +- app/Traits/Upload.php | 2 +- assets/js/tinymce-72/CHANGELOG.md | 24 + assets/js/tinymce-72/composer.json | 2 +- assets/js/tinymce-72/icons/default/icons.js | 27 + .../js/tinymce-72/icons/default/icons.min.js | 2 +- assets/js/tinymce-72/models/dom/model.js | 41 +- assets/js/tinymce-72/models/dom/model.min.js | 4 +- assets/js/tinymce-72/package.json | 2 +- .../js/tinymce-72/plugins/accordion/plugin.js | 2 +- .../plugins/accordion/plugin.min.js | 2 +- .../js/tinymce-72/plugins/advlist/plugin.js | 42 +- .../tinymce-72/plugins/advlist/plugin.min.js | 4 +- assets/js/tinymce-72/plugins/anchor/plugin.js | 2 +- .../tinymce-72/plugins/anchor/plugin.min.js | 2 +- .../js/tinymce-72/plugins/autolink/plugin.js | 2 +- .../tinymce-72/plugins/autolink/plugin.min.js | 2 +- .../tinymce-72/plugins/autoresize/plugin.js | 2 +- .../plugins/autoresize/plugin.min.js | 2 +- .../js/tinymce-72/plugins/autosave/plugin.js | 2 +- .../tinymce-72/plugins/autosave/plugin.min.js | 2 +- .../js/tinymce-72/plugins/charmap/plugin.js | 2 +- .../tinymce-72/plugins/charmap/plugin.min.js | 2 +- assets/js/tinymce-72/plugins/code/plugin.js | 2 +- .../js/tinymce-72/plugins/code/plugin.min.js | 2 +- .../tinymce-72/plugins/codesample/plugin.js | 2 +- .../plugins/codesample/plugin.min.js | 2 +- .../plugins/directionality/plugin.js | 2 +- .../plugins/directionality/plugin.min.js | 2 +- .../js/tinymce-72/plugins/emoticons/plugin.js | 2 +- .../plugins/emoticons/plugin.min.js | 2 +- .../tinymce-72/plugins/fullscreen/plugin.js | 2 +- .../plugins/fullscreen/plugin.min.js | 2 +- assets/js/tinymce-72/plugins/help/plugin.js | 7 +- .../js/tinymce-72/plugins/help/plugin.min.js | 4 +- assets/js/tinymce-72/plugins/image/plugin.js | 2 +- .../js/tinymce-72/plugins/image/plugin.min.js | 2 +- .../js/tinymce-72/plugins/importcss/plugin.js | 2 +- .../plugins/importcss/plugin.min.js | 2 +- .../plugins/insertdatetime/plugin.js | 2 +- .../plugins/insertdatetime/plugin.min.js | 2 +- assets/js/tinymce-72/plugins/link/plugin.js | 2 +- .../js/tinymce-72/plugins/link/plugin.min.js | 2 +- assets/js/tinymce-72/plugins/lists/plugin.js | 2 +- .../js/tinymce-72/plugins/lists/plugin.min.js | 2 +- assets/js/tinymce-72/plugins/media/plugin.js | 2 +- .../js/tinymce-72/plugins/media/plugin.min.js | 2 +- .../tinymce-72/plugins/nonbreaking/plugin.js | 2 +- .../plugins/nonbreaking/plugin.min.js | 2 +- .../js/tinymce-72/plugins/pagebreak/plugin.js | 2 +- .../plugins/pagebreak/plugin.min.js | 2 +- .../js/tinymce-72/plugins/preview/plugin.js | 2 +- .../tinymce-72/plugins/preview/plugin.min.js | 2 +- .../js/tinymce-72/plugins/quickbars/plugin.js | 175 +- .../plugins/quickbars/plugin.min.js | 4 +- assets/js/tinymce-72/plugins/save/plugin.js | 2 +- .../js/tinymce-72/plugins/save/plugin.min.js | 2 +- .../plugins/searchreplace/plugin.js | 2 +- .../plugins/searchreplace/plugin.min.js | 2 +- assets/js/tinymce-72/plugins/table/plugin.js | 2 +- .../js/tinymce-72/plugins/table/plugin.min.js | 2 +- .../tinymce-72/plugins/visualblocks/plugin.js | 2 +- .../plugins/visualblocks/plugin.min.js | 2 +- .../tinymce-72/plugins/visualchars/plugin.js | 2 +- .../plugins/visualchars/plugin.min.js | 2 +- .../js/tinymce-72/plugins/wordcount/plugin.js | 2 +- .../plugins/wordcount/plugin.min.js | 2 +- .../skins/ui/oxide-dark/content.css | 91 + .../skins/ui/oxide-dark/content.inline.css | 91 + .../skins/ui/oxide-dark/content.inline.js | 2 +- .../ui/oxide-dark/content.inline.min.css | 2 +- .../tinymce-72/skins/ui/oxide-dark/content.js | 2 +- .../skins/ui/oxide-dark/content.min.css | 2 +- .../tinymce-72/skins/ui/oxide-dark/skin.css | 175 +- .../js/tinymce-72/skins/ui/oxide-dark/skin.js | 2 +- .../skins/ui/oxide-dark/skin.min.css | 2 +- .../skins/ui/oxide-dark/skin.shadowdom.js | 2 +- .../js/tinymce-72/skins/ui/oxide/content.css | 91 + .../skins/ui/oxide/content.inline.css | 91 + .../skins/ui/oxide/content.inline.js | 2 +- .../skins/ui/oxide/content.inline.min.css | 2 +- .../js/tinymce-72/skins/ui/oxide/content.js | 2 +- .../tinymce-72/skins/ui/oxide/content.min.css | 2 +- assets/js/tinymce-72/skins/ui/oxide/skin.css | 179 +- assets/js/tinymce-72/skins/ui/oxide/skin.js | 2 +- .../js/tinymce-72/skins/ui/oxide/skin.min.css | 2 +- .../skins/ui/oxide/skin.shadowdom.js | 2 +- .../skins/ui/tinymce-5-dark/content.css | 91 + .../ui/tinymce-5-dark/content.inline.css | 91 + .../skins/ui/tinymce-5-dark/content.inline.js | 2 +- .../ui/tinymce-5-dark/content.inline.min.css | 2 +- .../skins/ui/tinymce-5-dark/content.js | 2 +- .../skins/ui/tinymce-5-dark/content.min.css | 2 +- .../skins/ui/tinymce-5-dark/skin.css | 191 +- .../skins/ui/tinymce-5-dark/skin.js | 2 +- .../skins/ui/tinymce-5-dark/skin.min.css | 2 +- .../tinymce-72/skins/ui/tinymce-5/content.css | 91 + .../skins/ui/tinymce-5/content.inline.css | 91 + .../skins/ui/tinymce-5/content.inline.js | 2 +- .../skins/ui/tinymce-5/content.inline.min.css | 2 +- .../tinymce-72/skins/ui/tinymce-5/content.js | 2 +- .../skins/ui/tinymce-5/content.min.css | 2 +- .../js/tinymce-72/skins/ui/tinymce-5/skin.css | 183 +- .../js/tinymce-72/skins/ui/tinymce-5/skin.js | 2 +- .../skins/ui/tinymce-5/skin.min.css | 2 +- assets/js/tinymce-72/themes/silver/theme.js | 823 ++-- .../js/tinymce-72/themes/silver/theme.min.js | 136 +- assets/js/tinymce-72/tinymce.d.ts | 66 +- assets/js/tinymce-72/tinymce.js | 3400 +++++++++-------- assets/js/tinymce-72/tinymce.min.js | 114 +- assets/js/validasi.js | 7 +- catatan_rilis.md | 9 +- composer.lock | 131 +- config/app.php | 7 + donjo-app/Routes/Web/admin.php | 86 - donjo-app/Routes/api.php | 3 + donjo-app/Routes/web.php | 20 - donjo-app/config/config.php | 13 +- donjo-app/config/constants.php | 4 +- donjo-app/controllers/Buku_keperluan.php | 529 --- donjo-app/controllers/Buku_kepuasan.php | 521 --- donjo-app/controllers/Buku_pertanyaan.php | 537 --- donjo-app/controllers/Buku_tamu.php | 489 --- donjo-app/controllers/Info_sistem.php | 839 ++-- donjo-app/controllers/Install.php | 2 +- donjo-app/controllers/Job.php | 2 +- .../controllers/Kehadiran_hari_libur.php | 577 --- donjo-app/controllers/Kehadiran_jam_kerja.php | 569 --- donjo-app/controllers/Kehadiran_keluar.php | 545 --- .../controllers/Kehadiran_rekapitulasi.php | 593 --- donjo-app/controllers/Komentar.php | 2 +- donjo-app/controllers/Pengguna.php | 2 +- donjo-app/controllers/Surat_master.php | 2 +- donjo-app/controllers/buku_umum/Pengurus.php | 2 +- donjo-app/controllers/fweb/Buku_tamu.php | 529 --- .../Api_informasi_publik.php | 108 +- donjo-app/controllers/kehadiran/Perangkat.php | 569 --- donjo-app/core/Admin_Controller.php | 2 +- donjo-app/core/MY_Controller.php | 2 +- donjo-app/core/MY_Loader.php | 433 --- donjo-app/core/MY_Log.php | 409 -- donjo-app/core/MY_Model.php | 2 +- donjo-app/helpers/core_helper.php | 2 +- donjo-app/helpers/general_helper.php | 23 +- donjo-app/helpers/illuminate_helper.php | 2 +- donjo-app/helpers/opensid_helper.php | 2 +- donjo-app/libraries/Log_Viewer.php | 536 --- donjo-app/models/Pamong_model.php | 2 +- donjo-app/models/Web_widget_model.php | 2 +- donjo-app/models/migrations/Data_awal.php | 40 +- .../models/migrations/Migrasi_2024040171.php | 10 +- .../models/migrations/Migrasi_2024120171.php | 93 +- .../models/migrations/Migrasi_2024121851.php | 55 + donjo-app/models/migrations/Migrasi_rev.php | 8 +- .../third_party/pelanggan/libraries/Cek.php | 2 +- .../views/admin/komentar/index.blade.php | 7 +- resources/views/admin/layouts/index.blade.php | 1 + .../admin/layouts/partials/header.blade.php | 2 +- .../admin/pengaturan/modal_form.blade.php | 2 +- .../framework/system/core/Common.php | 29 +- .../codeigniter/framework/system/core/Log.php | 315 ++ .../framework/system/core/Common.php | 29 +- .../codeigniter/framework/system/core/Log.php | 24 +- vendor/composer/installed.json | 113 +- vendor/composer/installed.php | 40 +- vendor/google/auth/VERSION | 2 +- vendor/google/auth/composer.json | 5 +- .../src/ApplicationDefaultCredentials.php | 42 +- .../src/HttpHandler/Guzzle6HttpHandler.php | 84 +- .../src/HttpHandler/HttpHandlerFactory.php | 17 +- .../google/auth/src/Logging/LoggingTrait.php | 137 + .../google/auth/src/Logging/RpcLogEvent.php | 136 + .../google/auth/src/Logging/StdOutLogger.php | 85 + vendor/opensid/router/src/Hook.php | 7 +- .../laravel-package-tools/composer.json | 8 +- .../laravel-zipstream/src/Models/S3File.php | 15 +- 397 files changed, 10385 insertions(+), 13077 deletions(-) rename Modules/Analisis/Http/Controllers/{Analisis_indikator.php => AnalisisIndikatorController.php} (98%) rename Modules/Analisis/Http/Controllers/{Analisis_kategori.php => AnalisisKategoriController.php} (97%) rename Modules/Analisis/Http/Controllers/{Analisis_klasifikasi.php => AnalisisKlasifikasiController.php} (97%) rename Modules/Analisis/Http/Controllers/{Analisis_laporan.php => AnalisisLaporanController.php} (92%) rename Modules/Analisis/Http/Controllers/{Analisis_master.php => AnalisisMasterController.php} (97%) rename Modules/Analisis/Http/Controllers/{Analisis_parameter.php => AnalisisParameterController.php} (97%) rename Modules/Analisis/Http/Controllers/{Analisis_periode.php => AnalisisPeriodeController.php} (98%) rename Modules/Analisis/Http/Controllers/{Analisis_respon_child.php => AnalisisResponChildController.php} (96%) rename Modules/Analisis/Http/Controllers/{Analisis_respon.php => AnalisisResponController.php} (95%) rename Modules/Analisis/Http/Controllers/{Analisis_statistik_jawaban.php => AnalisisStatistikJawabanController.php} (95%) create mode 100644 Modules/Analisis/Providers/AnalisisServiceProvider.php rename Modules/Analisis/Views/{analisis_indikator => indikator}/form.blade.php (99%) rename Modules/Analisis/Views/{analisis_indikator => indikator}/index.blade.php (99%) rename Modules/Analisis/Views/{analisis_kategori => kategori}/form.blade.php (100%) rename Modules/Analisis/Views/{analisis_kategori => kategori}/index.blade.php (99%) rename Modules/Analisis/Views/{analisis_klasifikasi => klasifikasi}/form.blade.php (100%) rename Modules/Analisis/Views/{analisis_klasifikasi => klasifikasi}/index.blade.php (99%) rename Modules/Analisis/Views/{analisis_laporan => laporan}/ajax_multi.blade.php (100%) rename Modules/Analisis/Views/{analisis_laporan => laporan}/form.blade.php (99%) rename Modules/Analisis/Views/{analisis_laporan => laporan}/form_cetak.blade.php (100%) rename Modules/Analisis/Views/{analisis_laporan => laporan}/index.blade.php (99%) rename Modules/Analisis/Views/{analisis_laporan => laporan}/table_print.blade.php (100%) rename Modules/Analisis/Views/{analisis_laporan => laporan}/ttd_pamong.blade.php (100%) rename Modules/Analisis/Views/{analisis => master}/form.blade.php (100%) rename Modules/Analisis/Views/{analisis => master}/import.blade.php (100%) rename Modules/Analisis/Views/{analisis => master}/import_gform.blade.php (100%) rename Modules/Analisis/Views/{analisis => master}/index.blade.php (100%) rename Modules/Analisis/Views/{analisis => master}/menu.blade.php (100%) rename Modules/Analisis/Views/{analisis => master}/menu_default.blade.php (96%) rename Modules/Analisis/Views/{analisis_parameter => parameter}/form.blade.php (100%) rename Modules/Analisis/Views/{analisis_parameter => parameter}/index.blade.php (99%) rename Modules/Analisis/Views/{analisis_periode => periode}/form.blade.php (100%) rename Modules/Analisis/Views/{analisis_periode => periode}/index.blade.php (99%) rename Modules/Analisis/Views/{analisis_respon => respon}/child/form.blade.php (100%) rename Modules/Analisis/Views/{analisis_respon => respon}/form.blade.php (99%) rename Modules/Analisis/Views/{analisis_respon => respon}/import/aturan_unduh.blade.php (100%) rename Modules/Analisis/Views/{analisis_respon => respon}/import/data_ajax.blade.php (100%) rename Modules/Analisis/Views/{analisis_respon => respon}/import/data_unduh.blade.php (100%) rename Modules/Analisis/Views/{analisis_respon => respon}/import/impor_bdt.blade.php (100%) rename Modules/Analisis/Views/{analisis_respon => respon}/import/import.blade.php (100%) rename Modules/Analisis/Views/{analisis_respon => respon}/index.blade.php (99%) rename Modules/Analisis/Views/{analisis_statistik_jawaban => statistik_jawaban}/index.blade.php (99%) rename Modules/Analisis/Views/{analisis_statistik_jawaban => statistik_jawaban}/parameter/grafik_table.blade.php (99%) rename Modules/Analisis/Views/{analisis_statistik_jawaban => statistik_jawaban}/parameter/subjek_print.blade.php (100%) rename Modules/Analisis/Views/{analisis_statistik_jawaban => statistik_jawaban}/parameter/subjek_table.blade.php (99%) rename Modules/Analisis/Views/{analisis_statistik_jawaban => statistik_jawaban}/table_print.blade.php (100%) rename Modules/Anjungan/{Config/anjungan.php => Http/Controllers/BackEnd/AnjunganBaseController.php} (82%) rename Modules/Anjungan/Http/Controllers/{Admin/Anjungan.php => BackEnd/AnjunganController.php} (96%) rename Modules/Anjungan/Http/Controllers/{Admin/Anjungan_menu.php => BackEnd/AnjunganMenuController.php} (95%) rename Modules/Anjungan/Http/Controllers/{Admin/Anjungan_pengaturan.php => BackEnd/AnjunganPengaturanController.php} (92%) rename Modules/Anjungan/Http/Controllers/{AnjunganBeranda.php => FrontEnd/AnjunganBerandaController.php} (93%) rename Modules/Anjungan/Http/Controllers/{Anjungan.php => FrontEnd/AnjunganController.php} (96%) rename Modules/Anjungan/Http/Controllers/{AnjunganSurat.php => FrontEnd/AnjunganSuratController.php} (97%) delete mode 100644 Modules/Anjungan/Http/Controllers/Surat_anjungan.php create mode 100644 Modules/Anjungan/Providers/AnjunganServiceProvider.php rename {assets/anjungan => Modules/Anjungan/Views/assets}/css/bootstrap.min.css (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/css/color/casual.css (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/css/color/nature.css (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/css/color/travel.css (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/css/darkmode.css (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/css/default.css (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/css/screen.css (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/css/style.css (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/bg.jpg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/home.svg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/absen.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/aparatur.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/browserweb.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/bukutamu.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/camera.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/dark.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/infopublik.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/light.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/mandiri.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/mandiri2.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/maximize.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/minimize.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/pembangunan.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/pengaduan.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/peta.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/statistik.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/warna.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/icon/website.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/idm.svg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/kehadiran.svg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/keuangan.svg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/lapak.svg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/mandiri.svg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/menu.png (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/mode.svg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/perangkat.svg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/peta.svg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/public.svg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/statistik.svg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/images/tamu.svg (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/js/bootstrap.bundle.min.js (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/js/flickity.js (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/js/jquery.min.js (100%) rename {assets/anjungan => Modules/Anjungan/Views/assets}/js/support.js (100%) rename Modules/Anjungan/Views/{admin => backend}/anjungan/form.blade.php (100%) rename Modules/Anjungan/Views/{admin => backend}/anjungan/index.blade.php (98%) rename Modules/Anjungan/Views/{admin => backend}/anjungan/peringatan.blade.php (100%) rename Modules/Anjungan/Views/{admin/anjungan_menu => backend/menu}/form.blade.php (100%) rename Modules/Anjungan/Views/{admin/anjungan_menu => backend/menu}/index.blade.php (100%) rename Modules/Anjungan/Views/{admin/anjungan_pengaturan => backend/pengaturan}/index.blade.php (100%) rename Modules/Anjungan/Views/{anjungan => frontend}/beranda/content.blade.php (98%) rename Modules/Anjungan/Views/{anjungan => frontend}/beranda/index.blade.php (100%) rename Modules/Anjungan/Views/{anjungan => frontend}/index.blade.php (94%) rename Modules/Anjungan/Views/{anjungan => frontend}/potrait.blade.php (100%) rename Modules/Anjungan/Views/{anjungan => frontend}/surat/buat.blade.php (97%) rename Modules/Anjungan/Views/{anjungan => frontend}/surat/form.blade.php (99%) rename Modules/Anjungan/Views/{anjungan => frontend}/surat/permohonan.blade.php (98%) rename donjo-app/models/migrations/Migrasi_2024121151.php => Modules/BukuTamu/Http/Controllers/BackEnd/AnjunganBaseController.php (88%) create mode 100644 Modules/BukuTamu/Http/Controllers/BackEnd/KeperluanController.php create mode 100644 Modules/BukuTamu/Http/Controllers/BackEnd/KepuasanController.php create mode 100644 Modules/BukuTamu/Http/Controllers/BackEnd/PertanyaanController.php create mode 100644 Modules/BukuTamu/Http/Controllers/BackEnd/TamuController.php create mode 100644 Modules/BukuTamu/Http/Controllers/FrontEnd/BukuTamuController.php rename Modules/{Analisis/Config => BukuTamu/Http/Controllers}/index.html (100%) create mode 100644 Modules/BukuTamu/Models/KeperluanModel.php create mode 100644 Modules/BukuTamu/Models/KepuasanModel.php create mode 100644 Modules/BukuTamu/Models/PertanyaanModel.php create mode 100644 Modules/BukuTamu/Models/TamuModel.php rename Modules/{Anjungan/Config => BukuTamu/Models}/index.html (100%) create mode 100644 Modules/BukuTamu/Providers/BukuTamuServiceProvider.php rename {app/Repository => Modules/BukuTamu/Routes}/index.html (100%) create mode 100644 Modules/BukuTamu/Routes/web.php create mode 100644 Modules/BukuTamu/Views/.gitkeep rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/css/bootstrap.min.css (100%) rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/css/plugins.bundle.css (100%) rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/css/screen.css (100%) rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/css/style.css (100%) rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/images/background.jpg (100%) rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/images/ebook.png (100%) rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/images/favicon.ico (100%) rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/images/header-bg-dark.png (100%) rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/images/header-bg.jpg (100%) rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/images/intro.png (100%) rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/images/logo.png (100%) rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/js/plugins.bundle.js (100%) rename {assets/buku_tamu => Modules/BukuTamu/Views/assets}/js/support.js (100%) rename {resources/views/admin/buku_tamu => Modules/BukuTamu/Views/backend}/keperluan/form.blade.php (100%) rename {resources/views/admin/buku_tamu => Modules/BukuTamu/Views/backend}/keperluan/index.blade.php (100%) rename {resources/views/admin/buku_tamu => Modules/BukuTamu/Views/backend}/kepuasan/index.blade.php (100%) rename {resources/views/admin/buku_tamu => Modules/BukuTamu/Views/backend}/kepuasan/show.blade.php (100%) rename {resources/views/admin/buku_tamu => Modules/BukuTamu/Views/backend}/pertanyaan/form.blade.php (100%) rename {resources/views/admin/buku_tamu => Modules/BukuTamu/Views/backend}/pertanyaan/index.blade.php (100%) rename {resources/views/admin/buku_tamu => Modules/BukuTamu/Views/backend}/tamu/cetak.blade.php (100%) rename {resources/views/admin/buku_tamu => Modules/BukuTamu/Views/backend}/tamu/form.blade.php (100%) rename {resources/views/admin/buku_tamu => Modules/BukuTamu/Views/backend}/tamu/index.blade.php (100%) rename {resources/views/buku_tamu => Modules/BukuTamu/Views/frontend}/index.blade.php (95%) rename {resources/views/buku_tamu => Modules/BukuTamu/Views/frontend}/kepuasan.blade.php (98%) rename {resources/views/buku_tamu => Modules/BukuTamu/Views/frontend}/pertanyaan.blade.php (98%) rename {resources/views/buku_tamu => Modules/BukuTamu/Views/frontend}/registrasi.blade.php (99%) create mode 100644 Modules/BukuTamu/Views/index.html create mode 100644 Modules/BukuTamu/composer.json create mode 100644 Modules/BukuTamu/index.html create mode 100644 Modules/BukuTamu/module.json create mode 100644 Modules/Kehadiran/Config/app.php create mode 100644 Modules/Kehadiran/Config/index.html create mode 100644 Modules/Kehadiran/Helpers/index.html create mode 100644 Modules/Kehadiran/Helpers/kehadiran_helper.php create mode 100644 Modules/Kehadiran/Http/Controllers/BackEnd/AlasanKeluarController.php create mode 100644 Modules/Kehadiran/Http/Controllers/BackEnd/HariLiburController.php create mode 100644 Modules/Kehadiran/Http/Controllers/BackEnd/JamKerjaController.php create mode 100644 Modules/Kehadiran/Http/Controllers/BackEnd/PengaduanController.php create mode 100644 Modules/Kehadiran/Http/Controllers/BackEnd/RekapitulasiController.php create mode 100644 Modules/Kehadiran/Http/Controllers/FrontEnd/PerangkatController.php create mode 100644 Modules/Kehadiran/Http/Controllers/index.html create mode 100644 Modules/Kehadiran/Models/AlasanKeluar.php create mode 100644 Modules/Kehadiran/Models/HariLibur.php create mode 100644 Modules/Kehadiran/Models/JamKerja.php create mode 100644 Modules/Kehadiran/Models/Kehadiran.php create mode 100644 Modules/Kehadiran/Models/KehadiranPengaduan.php create mode 100644 Modules/Kehadiran/Models/index.html create mode 100644 Modules/Kehadiran/Providers/KehadiranServiceProvider.php create mode 100644 Modules/Kehadiran/Routes/index.html create mode 100644 Modules/Kehadiran/Routes/web.php create mode 100644 Modules/Kehadiran/Views/.gitkeep rename assets/css/kehadiran-style.css => Modules/Kehadiran/Views/assets/css/style.css (92%) rename {assets/images/kehadiran => Modules/Kehadiran/Views/assets/img}/bg.jpg (100%) rename {resources/views/admin => Modules/Kehadiran/Views/backend}/alasan_keluar/form.blade.php (100%) rename {resources/views/admin => Modules/Kehadiran/Views/backend}/alasan_keluar/index.blade.php (100%) rename {resources/views/admin => Modules/Kehadiran/Views/backend}/hari_libur/form.blade.php (100%) rename {resources/views/admin => Modules/Kehadiran/Views/backend}/hari_libur/index.blade.php (100%) create mode 100644 Modules/Kehadiran/Views/backend/index.blade.php rename {resources/views/admin => Modules/Kehadiran/Views/backend}/jam_kerja/form.blade.php (100%) rename {resources/views/admin => Modules/Kehadiran/Views/backend}/jam_kerja/index.blade.php (100%) rename {resources/views/admin => Modules/Kehadiran/Views/backend}/pengaduan/form.blade.php (100%) rename {resources/views/admin => Modules/Kehadiran/Views/backend}/pengaduan/index.blade.php (100%) rename {resources/views/admin => Modules/Kehadiran/Views/backend}/rekapitulasi/index.blade.php (100%) rename {resources/views/kehadiran => Modules/Kehadiran/Views/frontend}/index.blade.php (97%) rename {resources/views/kehadiran => Modules/Kehadiran/Views/frontend}/layouts/index.blade.php (87%) rename {resources/views/kehadiran => Modules/Kehadiran/Views/frontend}/left.blade.php (100%) rename {resources/views/kehadiran => Modules/Kehadiran/Views/frontend}/masuk.blade.php (97%) create mode 100644 Modules/Kehadiran/Views/index.html create mode 100644 Modules/Kehadiran/composer.json create mode 100644 Modules/Kehadiran/index.html create mode 100644 Modules/Kehadiran/module.json rename app/{Models/BukuPertanyaan.php => Libraries/LogFormatter.php} (80%) create mode 100644 app/Libraries/LogViewer.php rename donjo-app/core/AnjunganModulController.php => app/Libraries/ShortcutModule.php (80%) delete mode 100644 app/Models/BukuKeperluan.php delete mode 100644 app/Models/BukuKepuasan.php delete mode 100644 app/Models/BukuTamu.php delete mode 100644 app/Models/HariLibur.php delete mode 100644 app/Models/JamKerja.php delete mode 100644 app/Models/Kehadiran.php rename app/{Models/KehadiranPengaduan.php => Repositories/SettingAplikasiRepository.php} (78%) create mode 100644 app/Repositories/index.html rename donjo-app/controllers/Kehadiran_pengaduan.php => app/Services/install/CreateGrupAksesService.php (75%) rename app/{Models/AlasanKeluar.php => Traits/StatusTrait.php} (75%) delete mode 100644 donjo-app/controllers/Buku_keperluan.php delete mode 100644 donjo-app/controllers/Buku_kepuasan.php delete mode 100644 donjo-app/controllers/Buku_pertanyaan.php delete mode 100644 donjo-app/controllers/Buku_tamu.php delete mode 100644 donjo-app/controllers/Kehadiran_hari_libur.php delete mode 100644 donjo-app/controllers/Kehadiran_jam_kerja.php delete mode 100644 donjo-app/controllers/Kehadiran_keluar.php delete mode 100644 donjo-app/controllers/Kehadiran_rekapitulasi.php delete mode 100644 donjo-app/controllers/fweb/Buku_tamu.php rename donjo-app/controllers/{ => internal_api}/Api_informasi_publik.php (76%) delete mode 100644 donjo-app/controllers/kehadiran/Perangkat.php delete mode 100644 donjo-app/core/MY_Loader.php delete mode 100644 donjo-app/core/MY_Log.php delete mode 100644 donjo-app/libraries/Log_Viewer.php create mode 100644 donjo-app/models/migrations/Migrasi_2024121851.php create mode 100644 storage/app/vendor/codeigniter/framework/system/core/Log.php create mode 100644 vendor/google/auth/src/Logging/LoggingTrait.php create mode 100644 vendor/google/auth/src/Logging/RpcLogEvent.php create mode 100644 vendor/google/auth/src/Logging/StdOutLogger.php diff --git a/.gitignore b/.gitignore index 0f400e361..9b33a74ba 100644 --- a/.gitignore +++ b/.gitignore @@ -67,12 +67,17 @@ php.ini # Ignore all files in Modules Modules/* +/assets/modules/* # Do not ignore Anjungan folder and its contents !Modules/Anjungan/ !Modules/Anjungan/** !Modules/Analisis/ !Modules/Analisis/** +!Modules/BukuTamu/ +!Modules/BukuTamu/** +!Modules/Kehadiran/ +!Modules/Kehadiran/** # Do not ignore specific files !Modules/.gitkeep diff --git a/Modules/Analisis/Http/Controllers/Analisis_indikator.php b/Modules/Analisis/Http/Controllers/AnalisisIndikatorController.php similarity index 98% rename from Modules/Analisis/Http/Controllers/Analisis_indikator.php rename to Modules/Analisis/Http/Controllers/AnalisisIndikatorController.php index 85926222a..da8c776d1 100644 --- a/Modules/Analisis/Http/Controllers/Analisis_indikator.php +++ b/Modules/Analisis/Http/Controllers/AnalisisIndikatorController.php @@ -44,7 +44,7 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Analisis_indikator extends AdminModulController +class AnalisisIndikatorController extends AdminModulController { public $moduleName = 'Analisis'; public $modul_ini = 'analisis'; @@ -66,7 +66,7 @@ public function __construct() public function index($master) { - return view('analisis_indikator.index', [ + return view('analisis::indikator.index', [ 'tipeKategori' => AnalisisKategori::where(['id_master' => $master])->pluck('kategori', 'id'), ]); } @@ -132,7 +132,7 @@ public function form($master, $id = null) $data['ubah'] = true; } - return view('analisis_indikator.form', $data); + return view('analisis::indikator.form', $data); } public function insert($master): void @@ -164,6 +164,7 @@ public function update($master, $id = null): void if ($data->update($dataUpdate)) { redirect_with('success', 'Berhasil Ubah Data', ci_route('analisis_indikator.' . $master)); } + redirect_with('error', 'Gagal Ubah Data', ci_route('analisis_indikator.' . $master)); } diff --git a/Modules/Analisis/Http/Controllers/Analisis_kategori.php b/Modules/Analisis/Http/Controllers/AnalisisKategoriController.php similarity index 97% rename from Modules/Analisis/Http/Controllers/Analisis_kategori.php rename to Modules/Analisis/Http/Controllers/AnalisisKategoriController.php index 6216cb1df..032e788cd 100644 --- a/Modules/Analisis/Http/Controllers/Analisis_kategori.php +++ b/Modules/Analisis/Http/Controllers/AnalisisKategoriController.php @@ -40,7 +40,7 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Analisis_kategori extends AdminModulController +class AnalisisKategoriController extends AdminModulController { public $moduleName = 'Analisis'; public $modul_ini = 'analisis'; @@ -62,7 +62,7 @@ public function __construct() public function index($master) { - return view('analisis_kategori.index'); + return view('analisis::kategori.index'); } public function datatables($master) @@ -111,7 +111,7 @@ public function form($master, $id = null) $data['analisis_kategori'] = null; } - return view('analisis_kategori.form', $data); + return view('analisis::kategori.form', $data); } public function insert($master): void diff --git a/Modules/Analisis/Http/Controllers/Analisis_klasifikasi.php b/Modules/Analisis/Http/Controllers/AnalisisKlasifikasiController.php similarity index 97% rename from Modules/Analisis/Http/Controllers/Analisis_klasifikasi.php rename to Modules/Analisis/Http/Controllers/AnalisisKlasifikasiController.php index 7a0b43d48..e909b7d4d 100644 --- a/Modules/Analisis/Http/Controllers/Analisis_klasifikasi.php +++ b/Modules/Analisis/Http/Controllers/AnalisisKlasifikasiController.php @@ -40,7 +40,7 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Analisis_klasifikasi extends AdminModulController +class AnalisisKlasifikasiController extends AdminModulController { public $moduleName = 'Analisis'; public $modul_ini = 'analisis'; @@ -62,7 +62,7 @@ public function __construct() public function index($master) { - return view('analisis_klasifikasi.index'); + return view('analisis::klasifikasi.index'); } public function datatables($master) @@ -110,7 +110,7 @@ public function form($master, $id = null) $data['analisis_klasifikasi'] = null; } - return view('analisis_klasifikasi.form', $data); + return view('analisis::klasifikasi.form', $data); } public function insert($master): void @@ -133,6 +133,7 @@ public function update($master, $id = null): void if ($data->update($dataUpdate)) { redirect_with('success', 'Berhasil Ubah Data', ci_route('analisis_klasifikasi.' . $master)); } + redirect_with('error', 'Gagal Ubah Data', ci_route('analisis_klasifikasi.' . $master)); } @@ -143,6 +144,7 @@ public function delete($master, $id = null): void if (AnalisisKlasifikasi::destroy($id ?? $this->request['id_cb']) !== 0) { redirect_with('success', 'Berhasil Hapus Data', ci_route('analisis_klasifikasi.' . $master)); } + redirect_with('error', 'Gagal Hapus Data', ci_route('analisis_klasifikasi.' . $master)); } diff --git a/Modules/Analisis/Http/Controllers/Analisis_laporan.php b/Modules/Analisis/Http/Controllers/AnalisisLaporanController.php similarity index 92% rename from Modules/Analisis/Http/Controllers/Analisis_laporan.php rename to Modules/Analisis/Http/Controllers/AnalisisLaporanController.php index 71c691b5f..9e3de21e6 100644 --- a/Modules/Analisis/Http/Controllers/Analisis_laporan.php +++ b/Modules/Analisis/Http/Controllers/AnalisisLaporanController.php @@ -50,7 +50,7 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Analisis_laporan extends AdminModulController +class AnalisisLaporanController extends AdminModulController { public $moduleName = 'Analisis'; public $modul_ini = 'analisis'; @@ -77,7 +77,7 @@ public function __construct() ]); } - public function index($master): void + public function index($master) { $data = [ 'judul' => Analisis::judul_subjek($this->analisisMaster->subjek_tipe), @@ -87,7 +87,7 @@ public function index($master): void 'namaPeriode' => $this->periodeAktif->nama, ]; - view('analisis_laporan.index', $data); + return view('analisis::laporan.index', $data); } public function datatables($master) @@ -147,7 +147,7 @@ private function sumberData() return $sumber; } - public function form($master, $idSubjek): void + public function form($master, $idSubjek) { $analisis = new Analisis(); @@ -159,20 +159,20 @@ public function form($master, $idSubjek): void $data['asubjek'] = $this->analisisMaster->subjek_tipe == AnalisisRefSubjekEnum::DESA ? ucwords(setting('sebutan_desa')) : AnalisisRefSubjekEnum::valueOf($this->analisisMaster->subjek_tipe); $data['id'] = $idSubjek; - view('analisis_laporan.form', $data); + return view('analisis::laporan.form', $data); } // $aksi = cetak/unduh - public function dialog_kuisioner($master, $id, $aksi = ''): void + public function dialog_kuisioner($master, $id, $aksi = '') { $data = $this->modal_penandatangan(); $data['aksi'] = ucwords((string) $aksi); $data['form_action'] = ci_route("analisis_laporan.{$master}.daftar.{$id}.{$aksi}"); - view('admin.layouts.components.ttd_pamong', $data); + return view('analisis::admin.layouts.components.ttd_pamong', $data); } - public function daftar($master, $idSubjek, $aksi = ''): void + public function daftar($master, $idSubjek, $aksi = '') { $analisis = new Analisis(); $data['total'] = AnalisisResponHasil::where(['id_subjek' => $idSubjek, 'id_periode' => $this->periodeAktif->id])->first()->akumulasi ?? 0; @@ -187,21 +187,21 @@ public function daftar($master, $idSubjek, $aksi = ''): void $data['pamong_ketahui'] = Pamong::selectData()->where(['pamong_id' => $this->input->post('pamong_ketahui')])->first()->toArray(); $data['aksi'] = $aksi; - view('analisis_laporan.form_cetak', $data); + return view('analisis::laporan.form_cetak', $data); } // $aksi = cetak/unduh - public function dialog($master, $aksi = ''): void + public function dialog($master, $aksi = '') { // Simpan session lama $data = $this->modal_penandatangan(); $data['aksi'] = ucwords((string) $aksi); $data['form_action'] = ci_route("analisis_laporan.{$master}.cetak.{$aksi}"); - view('analisis_laporan.ttd_pamong', $data); + return view('analisis::laporan.ttd_pamong', $data); } - public function cetak($master, $aksi = ''): void + public function cetak($master, $aksi = '') { $paramDatatable = json_decode((string) $this->input->post('params'), 1); $_GET = $paramDatatable; @@ -218,19 +218,19 @@ public function cetak($master, $aksi = ''): void $data['main'] = $query->get(); $data['letak_ttd'] = ['2', '2', '1']; - view('admin.layouts.components.format_cetak', $data); + return view('analisis::admin.layouts.components.format_cetak', $data); } - public function ajax_multi_jawab($master): void + public function ajax_multi_jawab($master) { $data['jawab'] = session('jawab') ?? ''; $data['main'] = (new Analisis())->multi_jawab($master); $data['form_action'] = ci_route("analisis_laporan.{$master}.multi_jawab_proses"); - view('analisis_laporan.ajax_multi', $data); + return view('analisis::laporan.ajax_multi', $data); } - public function multi_jawab_proses($master): void + public function multi_jawab_proses($master) { if (isset($_POST['id_cb'])) { unset($_SESSION['jawab'], $_SESSION['jmkf']); diff --git a/Modules/Analisis/Http/Controllers/Analisis_master.php b/Modules/Analisis/Http/Controllers/AnalisisMasterController.php similarity index 97% rename from Modules/Analisis/Http/Controllers/Analisis_master.php rename to Modules/Analisis/Http/Controllers/AnalisisMasterController.php index 973496472..d7f1c6d45 100644 --- a/Modules/Analisis/Http/Controllers/Analisis_master.php +++ b/Modules/Analisis/Http/Controllers/AnalisisMasterController.php @@ -53,13 +53,14 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Analisis_master extends AdminModulController +class AnalisisMasterController extends AdminModulController { use Upload; public $moduleName = 'Analisis'; public $modul_ini = 'analisis'; public $kategori_pengaturan = 'Analisis'; + public $aliasController = 'analisis_master'; public function __construct() { @@ -69,7 +70,7 @@ public function __construct() public function index() { - return view('analisis.index'); + return view('analisis::master.index'); } public function datatables() @@ -127,7 +128,7 @@ public function form($id = null) $data['analisis_master'] = null; } - return view('analisis.form', $data); + return view('analisis::master.form', $data); } public function insert(): void @@ -137,6 +138,7 @@ public function insert(): void if (AnalisisMaster::create(static::validate($this->request))) { redirect_with('success', 'Berhasil Tambah Data'); } + redirect_with('error', 'Gagal Tambah Data'); } @@ -149,6 +151,7 @@ public function update($id = null): void if ($data->update(static::validate($this->request, $id))) { redirect_with('success', 'Berhasil Ubah Data'); } + redirect_with('error', 'Gagal Ubah Data'); } @@ -159,14 +162,15 @@ public function delete($id = null): void if (AnalisisMaster::destroy($id ?? $this->request['id_cb']) !== 0) { redirect_with('success', 'Berhasil Hapus Data'); } + redirect_with('error', 'Gagal Hapus Data'); } - public function import_analisis(): void + public function import_analisis() { isCan('u'); - view('analisis.import', [ + return view('analisis::master.import', [ 'form_action' => ci_route('analisis_master.import'), 'formatImpor' => ci_route('unduh', encrypt(DEFAULT_LOKASI_IMPOR . 'analisis.xlsx')), 'formatPpls2' => ci_route('unduh', encrypt(DEFAULT_LOKASI_IMPOR . 'ppls2.xlsx')), @@ -187,7 +191,6 @@ public function import(): void } catch (Exception $e) { redirect_with('error', 'Gagal import analisis ' . $e->getMessage()); } - } public function ekspor($id): void @@ -337,12 +340,12 @@ private function ekspor_klasifikasi(Writer $writer, array $master): void } } - public function import_gform(): void + public function import_gform() { isCan('u'); $data['form_action'] = ci_route('analisis_master.exec_import_gform'); - view('analisis.import_gform', $data); + return view('analisis::master.import_gform', $data); } /** @@ -451,7 +454,7 @@ public function menu($master) 'analisis_master' => AnalisisMaster::findOrFail($master), ]; - return view('analisis.menu_default', $data); + return view('analisis::master.menu_default', $data); } protected static function validate(array $request = []): array diff --git a/Modules/Analisis/Http/Controllers/Analisis_parameter.php b/Modules/Analisis/Http/Controllers/AnalisisParameterController.php similarity index 97% rename from Modules/Analisis/Http/Controllers/Analisis_parameter.php rename to Modules/Analisis/Http/Controllers/AnalisisParameterController.php index 45cc26bb0..ea303ca0f 100644 --- a/Modules/Analisis/Http/Controllers/Analisis_parameter.php +++ b/Modules/Analisis/Http/Controllers/AnalisisParameterController.php @@ -41,7 +41,7 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Analisis_parameter extends AdminModulController +class AnalisisParameterController extends AdminModulController { public $moduleName = 'Analisis'; public $modul_ini = 'analisis'; @@ -62,7 +62,7 @@ public function index($master, $indikator) 'baseRoute' => ci_route('analisis_indikator.' . $master . '.parameter.' . $indikator), ]; - return view('analisis_parameter.index', $data); + return view('analisis::parameter.index', $data); } public function datatables($master, $indikator) @@ -115,7 +115,7 @@ public function form($master, $indikator, $id = null) $data['form_action'] = ci_route('analisis_indikator.' . $master . '.parameter.' . $indikator . '.insert'); } - return view('analisis_parameter.form', $data); + return view('analisis::parameter.form', $data); } public function insert($master, $indikator): void @@ -130,6 +130,7 @@ public function insert($master, $indikator): void if (AnalisisParameter::create($dataInsert)) { redirect_with('success', 'Berhasil Tambah Data', ci_route('analisis_indikator.' . $master . '.parameter', $indikator)); } + redirect_with('error', 'Gagal Tambah Data', ci_route('analisis_indikator.' . $master . '.parameter', $indikator)); } @@ -146,6 +147,7 @@ public function update($master, $indikator, $id = null): void if ($data->update($dataUpdate)) { redirect_with('success', 'Berhasil Ubah Data', ci_route('analisis_indikator.' . $master . '.parameter', $indikator)); } + redirect_with('error', 'Gagal Ubah Data', ci_route('analisis_indikator.' . $master . '.parameter', $indikator)); } @@ -159,6 +161,7 @@ public function delete($master, $indikator, $id = null): void if (AnalisisParameter::destroy($id ?? $this->request['id_cb']) !== 0) { redirect_with('success', 'Berhasil Hapus Data', ci_route('analisis_indikator.' . $master . '.parameter', $indikator)); } + redirect_with('error', 'Gagal Hapus Data', ci_route('analisis_indikator.' . $master . '.parameter', $indikator)); } @@ -169,7 +172,5 @@ protected static function validate(array $request = []): array 'jawaban' => htmlentities($request['jawaban']), 'nilai' => bilangan($request['nilai']), ]; - - return $data; } } diff --git a/Modules/Analisis/Http/Controllers/Analisis_periode.php b/Modules/Analisis/Http/Controllers/AnalisisPeriodeController.php similarity index 98% rename from Modules/Analisis/Http/Controllers/Analisis_periode.php rename to Modules/Analisis/Http/Controllers/AnalisisPeriodeController.php index f69c5a998..e95574e96 100644 --- a/Modules/Analisis/Http/Controllers/Analisis_periode.php +++ b/Modules/Analisis/Http/Controllers/AnalisisPeriodeController.php @@ -43,7 +43,7 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Analisis_periode extends AdminModulController +class AnalisisPeriodeController extends AdminModulController { public $moduleName = 'Analisis'; public $modul_ini = 'analisis'; @@ -65,7 +65,7 @@ public function __construct() public function index($master) { - return view('analisis_periode.index'); + return view('analisis::periode.index'); } public function datatables($master) @@ -120,7 +120,7 @@ public function form($master, $id = null) $data['analisis_periode'] = null; } - return view('analisis_periode.form', $data); + return view('analisis::periode.form', $data); } public function insert($master): void @@ -135,6 +135,7 @@ public function insert($master): void redirect_with('success', 'Berhasil Tambah Data', ci_route('analisis_periode.' . $master)); } + redirect_with('error', 'Gagal Tambah Data', ci_route('analisis_periode.' . $master)); } @@ -147,6 +148,7 @@ public function update($master, $id = null): void if ($data->update($dataUpdate)) { redirect_with('success', 'Berhasil Ubah Data', ci_route('analisis_periode.' . $master)); } + redirect_with('error', 'Gagal Ubah Data', ci_route('analisis_periode.' . $master)); } diff --git a/Modules/Analisis/Http/Controllers/Analisis_respon_child.php b/Modules/Analisis/Http/Controllers/AnalisisResponChildController.php similarity index 96% rename from Modules/Analisis/Http/Controllers/Analisis_respon_child.php rename to Modules/Analisis/Http/Controllers/AnalisisResponChildController.php index 1a17c03a1..8668097a6 100644 --- a/Modules/Analisis/Http/Controllers/Analisis_respon_child.php +++ b/Modules/Analisis/Http/Controllers/AnalisisResponChildController.php @@ -43,8 +43,10 @@ use Modules\Analisis\Models\AnalisisRespon; defined('BASEPATH') || exit('No direct script access allowed'); -require_once 'Analisis_respon.php'; -class Analisis_respon_child extends Analisis_respon + +require_once 'ANalisisResponController.php'; + +class AnalisisResponChildController extends ANalisisResponController { use Upload; @@ -55,7 +57,7 @@ public function formChild($master, $parentSubjek, $idSubjek) $per = $this->getPeriodeChild(); $data['list_jawab'] = $this->listIndikatorChild($idSubjek, $per); - return view('analisis_respon.child.form', $data); + return view('analisis::respon.child.form', $data); } public function updateChild($master, $parentSubjek, $idSubjek): void diff --git a/Modules/Analisis/Http/Controllers/Analisis_respon.php b/Modules/Analisis/Http/Controllers/AnalisisResponController.php similarity index 95% rename from Modules/Analisis/Http/Controllers/Analisis_respon.php rename to Modules/Analisis/Http/Controllers/AnalisisResponController.php index 6897a1c28..56685b530 100644 --- a/Modules/Analisis/Http/Controllers/Analisis_respon.php +++ b/Modules/Analisis/Http/Controllers/AnalisisResponController.php @@ -49,7 +49,7 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Analisis_respon extends AdminModulController +class AnalisisResponController extends AdminModulController { use Upload; @@ -85,7 +85,7 @@ public function index($master) 'namaPeriode' => $this->periodeAktif->nama, ], Analisis::judul_subjek($this->analisisMaster->subjek_tipe)); - return view('analisis_respon.index', $data); + return view('analisis::respon.index', $data); } public function datatables($master) @@ -168,7 +168,7 @@ public function form($master, $idSubjek) $data['list_anggota'] = $analisis->listAnggota($this->analisisMaster, $idSubjek); $data['perbaharui'] = ci_route('analisis_respon.' . $master . '.perbaharui', $idSubjek); - return view('analisis_respon.form', $data); + return view('analisis::respon.form', $data); } public function update($master, $idSubjek): void @@ -211,10 +211,11 @@ public function perbaharui($master, $idSubjek): void redirect(ci_route('analisis_respon.' . $master . '.form', $idSubjek)); } - public function data_ajax(): void + public function data_ajax() { $data['analisis_master'] = $this->analisisMaster; - view('analisis_respon.import.data_ajax', $data); + + return view('analisis_respon.import.data_ajax', $data); } /** @@ -223,7 +224,7 @@ public function data_ajax(): void * @param int $tipe | 1. Dengan isian data, 2. Dengan kode isian * @param mixed $master */ - public function data_unduh($master): void + public function data_unduh($master) { $paramDatatable = json_decode((string) $this->input->post('params'), 1); $_GET = $paramDatatable; @@ -257,15 +258,15 @@ public function data_unduh($master): void }; $data['judul'] = Analisis::judul_subjek($this->analisisMaster->subjek_tipe); - view('analisis_respon.import.data_unduh', $data); + return view('analisis_respon.import.data_unduh', $data); } - public function import($master, $op = 0): void + public function import($master, $op = 0) { isCan('u'); $data['form_action'] = ci_route("analisis_respon.{$master}.import_proses", $op); - view('analisis_respon.import.import', $data); + return view('analisis_respon.import.import', $data); } public function import_proses($master, $op = 0): void @@ -285,14 +286,14 @@ public function import_proses($master, $op = 0): void } } - public function form_impor_bdt($master): void + public function form_impor_bdt($master) { isCan('u'); $data['form_action'] = ci_route("analisis_respon.{$master}.impor_bdt"); $data['analisis_master'] = $this->analisisMaster; $data['formatImpor'] = ci_route('unduh', encrypt(DEFAULT_LOKASI_IMPOR . 'contoh-data-bdt2015.xlsx')); - view('analisis_respon.import.impor_bdt', $data); + return view('analisis_respon.import.impor_bdt', $data); } public function impor_bdt($master): void diff --git a/Modules/Analisis/Http/Controllers/Analisis_statistik_jawaban.php b/Modules/Analisis/Http/Controllers/AnalisisStatistikJawabanController.php similarity index 95% rename from Modules/Analisis/Http/Controllers/Analisis_statistik_jawaban.php rename to Modules/Analisis/Http/Controllers/AnalisisStatistikJawabanController.php index 7f9bef293..18852d11e 100644 --- a/Modules/Analisis/Http/Controllers/Analisis_statistik_jawaban.php +++ b/Modules/Analisis/Http/Controllers/AnalisisStatistikJawabanController.php @@ -49,7 +49,7 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Analisis_statistik_jawaban extends AdminModulController +class AnalisisStatistikJawabanController extends AdminModulController { public $moduleName = 'Analisis'; public $modul_ini = 'analisis'; @@ -78,14 +78,14 @@ public function __construct() ]); } - public function index($master): void + public function index($master) { $data['list_tipe'] = TipePertanyaanEnum::all(); $data['list_kategori'] = AnalisisKategori::where(['id_master' => $master])->get(); $data['wilayah'] = Wilayah::treeAccess(); - view('analisis_statistik_jawaban.index', $data); + return view('analisis::statistik_jawaban.index', $data); } public function datatables($master) @@ -180,7 +180,7 @@ private function getQuerySubject($idCluster) return $sbj; } - public function grafik_parameter($master, $id = ''): void + public function grafik_parameter($master, $id = '') { if ($this->input->get('dusun')) { $this->filterColumn['dusun'] = $this->input->get('dusun'); @@ -204,10 +204,10 @@ public function grafik_parameter($master, $id = ''): void ->selectRaw("(SELECT COUNT(r.id_subjek) FROM analisis_respon r {$sbj} WHERE r.id_parameter = analisis_parameter.id AND r.id_periode = {$per}) as nilai") ->where('id_indikator', $id)->orderBy('kode_jawaban')->get()->toArray(); - view('analisis_statistik_jawaban.parameter.grafik_table', $data); + return view('analisis::statistik_jawaban.parameter.grafik_table', $data); } - public function subjek_parameter($master, $id, $par): void + public function subjek_parameter($master, $id, $par) { if ($this->input->get('dusun')) { @@ -235,10 +235,10 @@ public function subjek_parameter($master, $id, $par): void $data['analisis_master'] = $this->analisisMaster; $data['main'] = DB::select($sql); - view('analisis_statistik_jawaban.parameter.subjek_table', $data); + return view('analisis::statistik_jawaban.parameter.subjek_table', $data); } - public function cetak($master): void + public function cetak($master) { $tipe = $this->input->post('tipe') ?? 'cetak'; if ($tipe == 'unduh') { @@ -259,10 +259,11 @@ public function cetak($master): void return $item; })->toArray(); - view('analisis_statistik_jawaban.table_print', $data); + + return view('analisis::statistik_jawaban.table_print', $data); } - public function cetak_subjek($master, $id, $par, $tipe = 'cetak'): void + public function cetak_subjek($master, $id, $par, $tipe = 'cetak') { if ($tipe == 'unduh') { $tgl = date('d_m_Y'); @@ -279,6 +280,7 @@ public function cetak_subjek($master, $id, $par, $tipe = 'cetak'): void $data['analisis_statistik_jawaban'] = AnalisisParameter::findOrFail($par); $sql = "SELECT p.id AS id_pend,r.id_subjek,p.nama,p.nik,(SELECT DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(tanggallahir)), '%Y')+0 FROM tweb_penduduk WHERE id = p.id AND config_id = " . identitas('id') . ") AS umur,p.sex,a.dusun,a.rw,a.rt FROM analisis_respon r {$sbj} WHERE r.id_parameter = {$par} AND r.id_periode = {$per}"; $data['main'] = DB::select($sql); - view('analisis_statistik_jawaban.parameter.subjek_print', $data); + + return view('analisis::statistik_jawaban.parameter.subjek_print', $data); } } diff --git a/Modules/Analisis/Providers/AnalisisServiceProvider.php b/Modules/Analisis/Providers/AnalisisServiceProvider.php new file mode 100644 index 000000000..c6a04316c --- /dev/null +++ b/Modules/Analisis/Providers/AnalisisServiceProvider.php @@ -0,0 +1,82 @@ +registerViews(); + } + + /** + * Register the service provider. + * + * @return void + */ + public function register() + { + } + + /** + * Register views. + */ + public function registerViews(): void + { + $sourcePath = FCPATH . 'Modules' . DIRECTORY_SEPARATOR . $this->moduleName . DIRECTORY_SEPARATOR . 'Views'; + + $this->loadViewsFrom($sourcePath, $this->moduleNameLower); + } +} diff --git a/Modules/Analisis/Routes/web.php b/Modules/Analisis/Routes/web.php index 766b1886e..1eb1f5729 100644 --- a/Modules/Analisis/Routes/web.php +++ b/Modules/Analisis/Routes/web.php @@ -36,113 +36,114 @@ */ Route::group('analisis_master', ['namespace' => 'Analisis'], static function (): void { - Route::get('', 'Analisis_master@index')->name('analisis_master.index-default'); - Route::get('clear', 'Analisis_master@index')->name('analisis_master.clear'); - Route::get('datatables', 'Analisis_master@datatables')->name('analisis_master.datatables'); - Route::get('form/{id?}', 'Analisis_master@form')->name('analisis_master.form'); - Route::post('insert', 'Analisis_master@insert')->name('analisis_master.insert'); - Route::post('update/{id?}', 'Analisis_master@update')->name('analisis_master.update'); - Route::get('delete/{id?}', 'Analisis_master@delete')->name('analisis_master.delete'); - Route::post('delete', 'Analisis_master@delete')->name('analisis_master.delete-all'); - Route::get('lock/{id}', 'Analisis_master@lock')->name('analisis_master.lock'); - Route::get('panduan', 'Analisis_master@panduan')->name('analisis_master.panduan'); - Route::get('import_analisis', 'Analisis_master@import_analisis')->name('analisis_master.import_analisis'); - Route::post('import', 'Analisis_master@import')->name('analisis_master.import'); - Route::get('ekspor/{id}', 'Analisis_master@ekspor')->name('analisis_master.ekspor'); - Route::get('import_gform/{id?}', 'Analisis_master@import_gform')->name('analisis_master.import_gform'); - Route::get('menu/{id?}', 'Analisis_master@menu')->name('analisis_master.menu'); - Route::post('exec_import_gform', 'Analisis_master@exec_import_gform')->name('analisis_master.exec_import_gform'); - Route::post('save_import_gform/{id?}', 'Analisis_master@save_import_gform')->name('analisis_master.save_import_gform'); - Route::match(['GET', 'POST'], '/update_gform/{id?}', 'Analisis_master@update_gform')->name('analisis_master.update_gform'); + Route::get('', 'AnalisisMasterController@index')->name('analisis_master.index-default'); + Route::get('clear', 'AnalisisMasterController@index')->name('analisis_master.clear'); + Route::get('datatables', 'AnalisisMasterController@datatables')->name('analisis_master.datatables'); + Route::get('form/{id?}', 'AnalisisMasterController@form')->name('analisis_master.form'); + Route::post('insert', 'AnalisisMasterController@insert')->name('analisis_master.insert'); + Route::post('update/{id?}', 'AnalisisMasterController@update')->name('analisis_master.update'); + Route::get('delete/{id?}', 'AnalisisMasterController@delete')->name('analisis_master.delete'); + Route::post('delete', 'AnalisisMasterController@delete')->name('analisis_master.delete-all'); + Route::get('lock/{id}', 'AnalisisMasterController@lock')->name('analisis_master.lock'); + Route::get('panduan', 'AnalisisMasterController@panduan')->name('analisis_master.panduan'); + Route::get('import_analisis', 'AnalisisMasterController@import_analisis')->name('analisis_master.import_analisis'); + Route::post('import', 'AnalisisMasterController@import')->name('analisis_master.import'); + Route::get('ekspor/{id}', 'AnalisisMasterController@ekspor')->name('analisis_master.ekspor'); + Route::get('import_gform/{id?}', 'AnalisisMasterController@import_gform')->name('analisis_master.import_gform'); + Route::get('menu/{id?}', 'AnalisisMasterController@menu')->name('analisis_master.menu'); + Route::post('exec_import_gform', 'AnalisisMasterController@exec_import_gform')->name('analisis_master.exec_import_gform'); + Route::post('save_import_gform/{id?}', 'AnalisisMasterController@save_import_gform')->name('analisis_master.save_import_gform'); + Route::match(['GET', 'POST'], '/update_gform/{id?}', 'AnalisisMasterController@update_gform')->name('analisis_master.update_gform'); }); Route::group('analisis_indikator/{master}', ['namespace' => 'Analisis'], static function (): void { - Route::get('', 'Analisis_indikator@index')->name('analisis_indikator.index-default'); - Route::get('datatables', 'Analisis_indikator@datatables')->name('analisis_indikator.datatables'); - Route::get('form/{id?}', 'Analisis_indikator@form')->name('analisis_indikator.form'); - Route::post('insert', 'Analisis_indikator@insert')->name('analisis_indikator.insert'); - Route::post('update/{id?}', 'Analisis_indikator@update')->name('analisis_indikator.update'); - Route::get('delete/{id?}', 'Analisis_indikator@delete')->name('analisis_indikator.delete'); - Route::post('delete', 'Analisis_indikator@delete')->name('analisis_indikator.delete-all'); + Route::get('', 'AnalisisIndikatorController@index')->name('analisis_indikator.index-default'); + Route::get('datatables', 'AnalisisIndikatorController@datatables')->name('analisis_indikator.datatables'); + Route::get('form/{id?}', 'AnalisisIndikatorController@form')->name('analisis_indikator.form'); + Route::post('insert', 'AnalisisIndikatorController@insert')->name('analisis_indikator.insert'); + Route::post('update/{id?}', 'AnalisisIndikatorController@update')->name('analisis_indikator.update'); + Route::get('delete/{id?}', 'AnalisisIndikatorController@delete')->name('analisis_indikator.delete'); + Route::post('delete', 'AnalisisIndikatorController@delete')->name('analisis_indikator.delete-all'); Route::group('parameter/{indikator}', static function (): void { - Route::get('', 'Analisis_parameter@index')->name('analisis_parameter.index-default'); - Route::get('datatables', 'Analisis_parameter@datatables')->name('analisis_parameter.datatables'); - Route::get('form/{id?}', 'Analisis_parameter@form')->name('analisis_parameter.form'); - Route::post('insert', 'Analisis_parameter@insert')->name('analisis_parameter.insert'); - Route::post('update/{id?}', 'Analisis_parameter@update')->name('analisis_parameter.update'); - Route::get('delete/{id?}', 'Analisis_parameter@delete')->name('analisis_parameter.delete'); - Route::post('delete', 'Analisis_parameter@delete')->name('analisis_parameter.delete-all'); + Route::get('', 'AnalisisParamterController@index')->name('analisis_parameter.index-default'); + Route::get('datatables', 'AnalisisParamterController@datatables')->name('analisis_parameter.datatables'); + Route::get('form/{id?}', 'AnalisisParamterController@form')->name('analisis_parameter.form'); + Route::post('insert', 'AnalisisParamterController@insert')->name('analisis_parameter.insert'); + Route::post('update/{id?}', 'AnalisisParamterController@update')->name('analisis_parameter.update'); + Route::get('delete/{id?}', 'AnalisisParamterController@delete')->name('analisis_parameter.delete'); + Route::post('delete', 'AnalisisParamterController@delete')->name('analisis_parameter.delete-all'); }); }); Route::group('analisis_kategori/{master}', ['namespace' => 'Analisis'], static function (): void { - Route::get('', 'Analisis_kategori@index')->name('analisis_kategori.index-default'); - Route::get('datatables', 'Analisis_kategori@datatables')->name('analisis_kategori.datatables'); - Route::get('form/{id?}', 'Analisis_kategori@form')->name('analisis_kategori.form'); - Route::post('insert', 'Analisis_kategori@insert')->name('analisis_kategori.insert'); - Route::post('update/{id?}', 'Analisis_kategori@update')->name('analisis_kategori.update'); - Route::get('delete/{id?}', 'Analisis_kategori@delete')->name('analisis_kategori.delete'); - Route::post('delete', 'Analisis_kategori@delete')->name('analisis_kategori.delete-all'); + Route::get('', 'AnalisisKategoriController@index')->name('analisis_kategori.index-default'); + Route::get('datatables', 'AnalisisKategoriController@datatables')->name('analisis_kategori.datatables'); + Route::get('form/{id?}', 'AnalisisKategoriController@form')->name('analisis_kategori.form'); + Route::post('insert', 'AnalisisKategoriController@insert')->name('analisis_kategori.insert'); + Route::post('update/{id?}', 'AnalisisKategoriController@update')->name('analisis_kategori.update'); + Route::get('delete/{id?}', 'AnalisisKategoriController@delete')->name('analisis_kategori.delete'); + Route::post('delete', 'AnalisisKategoriController@delete')->name('analisis_kategori.delete-all'); }); Route::group('analisis_klasifikasi/{master}', ['namespace' => 'Analisis'], static function (): void { - Route::get('', 'Analisis_klasifikasi@index')->name('analisis_klasifikasi.index-default'); - Route::get('datatables', 'Analisis_klasifikasi@datatables')->name('analisis_klasifikasi.datatables'); - Route::get('form/{id?}', 'Analisis_klasifikasi@form')->name('analisis_klasifikasi.form'); - Route::post('insert', 'Analisis_klasifikasi@insert')->name('analisis_klasifikasi.insert'); - Route::post('update/{id?}', 'Analisis_klasifikasi@update')->name('analisis_klasifikasi.update'); - Route::get('delete/{id?}', 'Analisis_klasifikasi@delete')->name('analisis_klasifikasi.delete'); - Route::post('delete', 'Analisis_klasifikasi@delete')->name('analisis_klasifikasi.delete-all'); + Route::get('', 'AnalisisKlasifikasiController@index')->name('analisis_klasifikasi.index-default'); + Route::get('datatables', 'AnalisisKlasifikasiController@datatables')->name('analisis_klasifikasi.datatables'); + Route::get('form/{id?}', 'AnalisisKlasifikasiController@form')->name('analisis_klasifikasi.form'); + Route::post('insert', 'AnalisisKlasifikasiController@insert')->name('analisis_klasifikasi.insert'); + Route::post('update/{id?}', 'AnalisisKlasifikasiController@update')->name('analisis_klasifikasi.update'); + Route::get('delete/{id?}', 'AnalisisKlasifikasiController@delete')->name('analisis_klasifikasi.delete'); + Route::post('delete', 'AnalisisKlasifikasiController@delete')->name('analisis_klasifikasi.delete-all'); }); Route::group('analisis_respon/{master}', ['namespace' => 'Analisis'], static function (): void { - Route::get('', 'Analisis_respon@index'); - Route::get('datatables', 'Analisis_respon@datatables')->name('analisis_respon.datatables'); - Route::get('form/{id}/{fs?}', 'Analisis_respon@form')->name('analisis_respon.form'); - Route::get('perbaharui/{id_subjek}', 'Analisis_respon@perbaharui')->name('analisis_respon.perbaharui'); - Route::post('update/{id}', 'Analisis_respon@update')->name('analisis_respon.update'); - Route::get('aturan_unduh', 'Analisis_respon@aturan_unduh')->name('analisis_respon.aturan_unduh'); - Route::get('data_ajax', 'Analisis_respon@data_ajax')->name('analisis_respon.data_ajax'); - Route::post('data_unduh', 'Analisis_respon@data_unduh')->name('analisis_respon.data_unduh'); - Route::get('import/{op?}', 'Analisis_respon@import')->name('analisis_respon.import'); - Route::post('import_proses/{op?}', 'Analisis_respon@import_proses')->name('analisis_respon.import_proses'); - Route::get('form_impor_bdt/{id?}', 'Analisis_respon@form_impor_bdt')->name('analisis_respon.form_impor_bdt'); - Route::post('impor_bdt', 'Analisis_respon@impor_bdt')->name('analisis_respon.impor_bdt'); + Route::get('', 'AnalisisResponController@index'); + Route::get('datatables', 'AnalisisResponController@datatables')->name('analisis_respon.datatables'); + Route::get('form/{id}/{fs?}', 'AnalisisResponController@form')->name('analisis_respon.form'); + Route::get('perbaharui/{id_subjek}', 'AnalisisResponController@perbaharui')->name('analisis_respon.perbaharui'); + Route::post('update/{id}', 'AnalisisResponController@update')->name('analisis_respon.update'); + Route::get('aturan_unduh', 'AnalisisResponController@aturan_unduh')->name('analisis_respon.aturan_unduh'); + Route::get('data_ajax', 'AnalisisResponController@data_ajax')->name('analisis_respon.data_ajax'); + Route::post('data_unduh', 'AnalisisResponController@data_unduh')->name('analisis_respon.data_unduh'); + Route::get('import/{op?}', 'AnalisisResponController@import')->name('analisis_respon.import'); + Route::post('import_proses/{op?}', 'AnalisisResponController@import_proses')->name('analisis_respon.import_proses'); + Route::get('form_impor_bdt/{id?}', 'AnalisisResponController@form_impor_bdt')->name('analisis_respon.form_impor_bdt'); + Route::post('impor_bdt', 'AnalisisResponController@impor_bdt')->name('analisis_respon.impor_bdt'); Route::group('child', static function (): void { - Route::get('form/{id}/{idc?}', 'Analisis_respon_child@formChild')->name('analisis_respon.form_child'); - Route::post('update/{id}/{idc?}', 'Analisis_respon_child@updateChild')->name('analisis_respon.update_child'); + Route::get('form/{id}/{idc?}', 'AnalisisResponChild@formChild')->name('analisis_respon.form_child'); + Route::post('update/{id}/{idc?}', 'AnalisisResponChild@updateChild')->name('analisis_respon.update_child'); }); }); + Route::group('analisis_periode/{master}', ['namespace' => 'Analisis'], static function (): void { - Route::get('', 'Analisis_periode@index')->name('analisis_periode.index-default'); - Route::get('datatables', 'Analisis_periode@datatables')->name('analisis_periode.datatables'); - Route::get('form/{id?}', 'Analisis_periode@form')->name('analisis_periode.form'); - Route::post('insert', 'Analisis_periode@insert')->name('analisis_periode.insert'); - Route::post('update/{id?}', 'Analisis_periode@update')->name('analisis_periode.update'); - Route::get('lock/{id}', 'Analisis_periode@lock')->name('analisis_periode.lock'); - Route::get('delete/{id?}', 'Analisis_periode@delete')->name('analisis_periode.delete'); - Route::post('delete', 'Analisis_periode@delete')->name('analisis_periode.delete-all'); + Route::get('', 'AnalisisPeriodeController@index')->name('analisis_periode.index-default'); + Route::get('datatables', 'AnalisisPeriodeController@datatables')->name('analisis_periode.datatables'); + Route::get('form/{id?}', 'AnalisisPeriodeController@form')->name('analisis_periode.form'); + Route::post('insert', 'AnalisisPeriodeController@insert')->name('analisis_periode.insert'); + Route::post('update/{id?}', 'AnalisisPeriodeController@update')->name('analisis_periode.update'); + Route::get('lock/{id}', 'AnalisisPeriodeController@lock')->name('analisis_periode.lock'); + Route::get('delete/{id?}', 'AnalisisPeriodeController@delete')->name('analisis_periode.delete'); + Route::post('delete', 'AnalisisPeriodeController@delete')->name('analisis_periode.delete-all'); }); Route::group('analisis_laporan/{master}', ['namespace' => 'Analisis'], static function (): void { - Route::get('', 'Analisis_laporan@index'); - Route::get('datatables', 'Analisis_laporan@datatables')->name('analisis_laporan.datatables'); - Route::get('form/{id}', 'Analisis_laporan@form')->name('analisis_laporan.form'); - Route::get('dialog_kuisioner/{id}/{aksi?}', 'Analisis_laporan@dialog_kuisioner')->name('analisis_laporan.dialog_kuisioner'); - Route::post('daftar/{id}/{aksi?}', 'Analisis_laporan@daftar')->name('analisis_laporan.daftar'); - Route::get('dialog/{aksi?}', 'Analisis_laporan@dialog')->name('analisis_laporan.dialog'); - Route::post('cetak/{aksi?}', 'Analisis_laporan@cetak')->name('analisis_laporan.cetak'); - Route::get('multi_jawab', 'Analisis_laporan@multi_jawab')->name('analisis_laporan.multi_jawab'); - Route::post('multi_exec', 'Analisis_laporan@multi_exec')->name('analisis_laporan.multi_exec'); - Route::get('ajax_multi_jawab', 'Analisis_laporan@ajax_multi_jawab')->name('analisis_laporan.ajax_multi_jawab'); - Route::post('multi_jawab_proses', 'Analisis_laporan@multi_jawab_proses')->name('analisis_laporan.multi_jawab_proses'); + Route::get('', 'AnalisisLaporanController@index'); + Route::get('datatables', 'AnalisisLaporanController@datatables')->name('analisis_laporan.datatables'); + Route::get('form/{id}', 'AnalisisLaporanController@form')->name('analisis_laporan.form'); + Route::get('dialog_kuisioner/{id}/{aksi?}', 'AnalisisLaporanController@dialog_kuisioner')->name('analisis_laporan.dialog_kuisioner'); + Route::post('daftar/{id}/{aksi?}', 'AnalisisLaporanController@daftar')->name('analisis_laporan.daftar'); + Route::get('dialog/{aksi?}', 'AnalisisLaporanController@dialog')->name('analisis_laporan.dialog'); + Route::post('cetak/{aksi?}', 'AnalisisLaporanController@cetak')->name('analisis_laporan.cetak'); + Route::get('multi_jawab', 'AnalisisLaporanController@multi_jawab')->name('analisis_laporan.multi_jawab'); + Route::post('multi_exec', 'AnalisisLaporanController@multi_exec')->name('analisis_laporan.multi_exec'); + Route::get('ajax_multi_jawab', 'AnalisisLaporanController@ajax_multi_jawab')->name('analisis_laporan.ajax_multi_jawab'); + Route::post('multi_jawab_proses', 'AnalisisLaporanController@multi_jawab_proses')->name('analisis_laporan.multi_jawab_proses'); }); Route::group('analisis_statistik_jawaban/{master}', ['namespace' => 'Analisis'], static function (): void { - Route::get('', 'Analisis_statistik_jawaban@index'); - Route::get('datatables', 'Analisis_statistik_jawaban@datatables')->name('analisis_statistik_jawaban.datatables'); - Route::get('grafik_parameter/{id?}', 'Analisis_statistik_jawaban@grafik_parameter')->name('analisis_statistik_jawaban.grafik_parameter'); - Route::get('subjek_parameter/{id}/{par}', 'Analisis_statistik_jawaban@subjek_parameter')->name('analisis_statistik_jawaban.subjek_parameter'); - Route::post('cetak', 'Analisis_statistik_jawaban@cetak')->name('analisis_statistik_jawaban.cetak'); - Route::get('cetak_subjek/{id}/{par}/{tipe?}', 'Analisis_statistik_jawaban@cetak_subjek')->name('analisis_statistik_jawaban.cetak_subjek'); + Route::get('', 'AnalisisStatistikJawabanController@index'); + Route::get('datatables', 'AnalisisStatistikJawabanController@datatables')->name('analisis_statistik_jawaban.datatables'); + Route::get('grafik_parameter/{id?}', 'AnalisisStatistikJawabanController@grafik_parameter')->name('analisis_statistik_jawaban.grafik_parameter'); + Route::get('subjek_parameter/{id}/{par}', 'AnalisisStatistikJawabanController@subjek_parameter')->name('analisis_statistik_jawaban.subjek_parameter'); + Route::post('cetak', 'AnalisisStatistikJawabanController@cetak')->name('analisis_statistik_jawaban.cetak'); + Route::get('cetak_subjek/{id}/{par}/{tipe?}', 'AnalisisStatistikJawabanController@cetak_subjek')->name('analisis_statistik_jawaban.cetak_subjek'); }); diff --git a/Modules/Analisis/Views/analisis_indikator/form.blade.php b/Modules/Analisis/Views/indikator/form.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_indikator/form.blade.php rename to Modules/Analisis/Views/indikator/form.blade.php index a4d78d7d2..427997b99 100644 --- a/Modules/Analisis/Views/analisis_indikator/form.blade.php +++ b/Modules/Analisis/Views/indikator/form.blade.php @@ -20,7 +20,7 @@ {!! form_open($form_action, 'class="form-horizontal" id="validasi"') !!}
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_indikator/index.blade.php b/Modules/Analisis/Views/indikator/index.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_indikator/index.blade.php rename to Modules/Analisis/Views/indikator/index.blade.php index 8e7b4e05d..bd6fb257e 100644 --- a/Modules/Analisis/Views/analisis_indikator/index.blade.php +++ b/Modules/Analisis/Views/indikator/index.blade.php @@ -17,7 +17,7 @@ @include('admin.layouts.components.notifikasi')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_kategori/form.blade.php b/Modules/Analisis/Views/kategori/form.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_kategori/form.blade.php rename to Modules/Analisis/Views/kategori/form.blade.php diff --git a/Modules/Analisis/Views/analisis_kategori/index.blade.php b/Modules/Analisis/Views/kategori/index.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_kategori/index.blade.php rename to Modules/Analisis/Views/kategori/index.blade.php index 85cc0076c..9a34aeda7 100644 --- a/Modules/Analisis/Views/analisis_kategori/index.blade.php +++ b/Modules/Analisis/Views/kategori/index.blade.php @@ -17,7 +17,7 @@ @include('admin.layouts.components.notifikasi')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_klasifikasi/form.blade.php b/Modules/Analisis/Views/klasifikasi/form.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_klasifikasi/form.blade.php rename to Modules/Analisis/Views/klasifikasi/form.blade.php diff --git a/Modules/Analisis/Views/analisis_klasifikasi/index.blade.php b/Modules/Analisis/Views/klasifikasi/index.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_klasifikasi/index.blade.php rename to Modules/Analisis/Views/klasifikasi/index.blade.php index 771d9d0bf..49edf95a0 100644 --- a/Modules/Analisis/Views/analisis_klasifikasi/index.blade.php +++ b/Modules/Analisis/Views/klasifikasi/index.blade.php @@ -17,7 +17,7 @@ @include('admin.layouts.components.notifikasi')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_laporan/ajax_multi.blade.php b/Modules/Analisis/Views/laporan/ajax_multi.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_laporan/ajax_multi.blade.php rename to Modules/Analisis/Views/laporan/ajax_multi.blade.php diff --git a/Modules/Analisis/Views/analisis_laporan/form.blade.php b/Modules/Analisis/Views/laporan/form.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_laporan/form.blade.php rename to Modules/Analisis/Views/laporan/form.blade.php index 161d30556..e14e75616 100644 --- a/Modules/Analisis/Views/analisis_laporan/form.blade.php +++ b/Modules/Analisis/Views/laporan/form.blade.php @@ -15,7 +15,7 @@ @section('content')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_laporan/form_cetak.blade.php b/Modules/Analisis/Views/laporan/form_cetak.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_laporan/form_cetak.blade.php rename to Modules/Analisis/Views/laporan/form_cetak.blade.php diff --git a/Modules/Analisis/Views/analisis_laporan/index.blade.php b/Modules/Analisis/Views/laporan/index.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_laporan/index.blade.php rename to Modules/Analisis/Views/laporan/index.blade.php index dd85a80a4..deadb8b07 100644 --- a/Modules/Analisis/Views/analisis_laporan/index.blade.php +++ b/Modules/Analisis/Views/laporan/index.blade.php @@ -18,7 +18,7 @@ @include('admin.layouts.components.notifikasi')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_laporan/table_print.blade.php b/Modules/Analisis/Views/laporan/table_print.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_laporan/table_print.blade.php rename to Modules/Analisis/Views/laporan/table_print.blade.php diff --git a/Modules/Analisis/Views/analisis_laporan/ttd_pamong.blade.php b/Modules/Analisis/Views/laporan/ttd_pamong.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_laporan/ttd_pamong.blade.php rename to Modules/Analisis/Views/laporan/ttd_pamong.blade.php diff --git a/Modules/Analisis/Views/analisis/form.blade.php b/Modules/Analisis/Views/master/form.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis/form.blade.php rename to Modules/Analisis/Views/master/form.blade.php diff --git a/Modules/Analisis/Views/analisis/import.blade.php b/Modules/Analisis/Views/master/import.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis/import.blade.php rename to Modules/Analisis/Views/master/import.blade.php diff --git a/Modules/Analisis/Views/analisis/import_gform.blade.php b/Modules/Analisis/Views/master/import_gform.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis/import_gform.blade.php rename to Modules/Analisis/Views/master/import_gform.blade.php diff --git a/Modules/Analisis/Views/analisis/index.blade.php b/Modules/Analisis/Views/master/index.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis/index.blade.php rename to Modules/Analisis/Views/master/index.blade.php diff --git a/Modules/Analisis/Views/analisis/menu.blade.php b/Modules/Analisis/Views/master/menu.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis/menu.blade.php rename to Modules/Analisis/Views/master/menu.blade.php diff --git a/Modules/Analisis/Views/analisis/menu_default.blade.php b/Modules/Analisis/Views/master/menu_default.blade.php similarity index 96% rename from Modules/Analisis/Views/analisis/menu_default.blade.php rename to Modules/Analisis/Views/master/menu_default.blade.php index f2e9af6f4..d9c954eb0 100644 --- a/Modules/Analisis/Views/analisis/menu_default.blade.php +++ b/Modules/Analisis/Views/master/menu_default.blade.php @@ -16,7 +16,7 @@ @include('admin.layouts.components.notifikasi')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_parameter/form.blade.php b/Modules/Analisis/Views/parameter/form.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_parameter/form.blade.php rename to Modules/Analisis/Views/parameter/form.blade.php diff --git a/Modules/Analisis/Views/analisis_parameter/index.blade.php b/Modules/Analisis/Views/parameter/index.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_parameter/index.blade.php rename to Modules/Analisis/Views/parameter/index.blade.php index b7a52f76f..0a9da9801 100644 --- a/Modules/Analisis/Views/analisis_parameter/index.blade.php +++ b/Modules/Analisis/Views/parameter/index.blade.php @@ -18,7 +18,7 @@ @include('admin.layouts.components.notifikasi')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_periode/form.blade.php b/Modules/Analisis/Views/periode/form.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_periode/form.blade.php rename to Modules/Analisis/Views/periode/form.blade.php diff --git a/Modules/Analisis/Views/analisis_periode/index.blade.php b/Modules/Analisis/Views/periode/index.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_periode/index.blade.php rename to Modules/Analisis/Views/periode/index.blade.php index e73be527a..538824eb4 100644 --- a/Modules/Analisis/Views/analisis_periode/index.blade.php +++ b/Modules/Analisis/Views/periode/index.blade.php @@ -17,7 +17,7 @@ @include('admin.layouts.components.notifikasi')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_respon/child/form.blade.php b/Modules/Analisis/Views/respon/child/form.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_respon/child/form.blade.php rename to Modules/Analisis/Views/respon/child/form.blade.php diff --git a/Modules/Analisis/Views/analisis_respon/form.blade.php b/Modules/Analisis/Views/respon/form.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_respon/form.blade.php rename to Modules/Analisis/Views/respon/form.blade.php index c326b8fc9..9b4157022 100644 --- a/Modules/Analisis/Views/analisis_respon/form.blade.php +++ b/Modules/Analisis/Views/respon/form.blade.php @@ -18,7 +18,7 @@ @include('admin.layouts.components.notifikasi')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_respon/import/aturan_unduh.blade.php b/Modules/Analisis/Views/respon/import/aturan_unduh.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_respon/import/aturan_unduh.blade.php rename to Modules/Analisis/Views/respon/import/aturan_unduh.blade.php diff --git a/Modules/Analisis/Views/analisis_respon/import/data_ajax.blade.php b/Modules/Analisis/Views/respon/import/data_ajax.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_respon/import/data_ajax.blade.php rename to Modules/Analisis/Views/respon/import/data_ajax.blade.php diff --git a/Modules/Analisis/Views/analisis_respon/import/data_unduh.blade.php b/Modules/Analisis/Views/respon/import/data_unduh.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_respon/import/data_unduh.blade.php rename to Modules/Analisis/Views/respon/import/data_unduh.blade.php diff --git a/Modules/Analisis/Views/analisis_respon/import/impor_bdt.blade.php b/Modules/Analisis/Views/respon/import/impor_bdt.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_respon/import/impor_bdt.blade.php rename to Modules/Analisis/Views/respon/import/impor_bdt.blade.php diff --git a/Modules/Analisis/Views/analisis_respon/import/import.blade.php b/Modules/Analisis/Views/respon/import/import.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_respon/import/import.blade.php rename to Modules/Analisis/Views/respon/import/import.blade.php diff --git a/Modules/Analisis/Views/analisis_respon/index.blade.php b/Modules/Analisis/Views/respon/index.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_respon/index.blade.php rename to Modules/Analisis/Views/respon/index.blade.php index 125732893..fc9b3c944 100644 --- a/Modules/Analisis/Views/analisis_respon/index.blade.php +++ b/Modules/Analisis/Views/respon/index.blade.php @@ -16,7 +16,7 @@ @include('admin.layouts.components.notifikasi')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_statistik_jawaban/index.blade.php b/Modules/Analisis/Views/statistik_jawaban/index.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_statistik_jawaban/index.blade.php rename to Modules/Analisis/Views/statistik_jawaban/index.blade.php index 5a1c94450..96148390d 100644 --- a/Modules/Analisis/Views/analisis_statistik_jawaban/index.blade.php +++ b/Modules/Analisis/Views/statistik_jawaban/index.blade.php @@ -18,7 +18,7 @@ @include('admin.layouts.components.notifikasi')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_statistik_jawaban/parameter/grafik_table.blade.php b/Modules/Analisis/Views/statistik_jawaban/parameter/grafik_table.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_statistik_jawaban/parameter/grafik_table.blade.php rename to Modules/Analisis/Views/statistik_jawaban/parameter/grafik_table.blade.php index eb4b29c12..861eef997 100644 --- a/Modules/Analisis/Views/analisis_statistik_jawaban/parameter/grafik_table.blade.php +++ b/Modules/Analisis/Views/statistik_jawaban/parameter/grafik_table.blade.php @@ -17,7 +17,7 @@ @include('admin.layouts.components.notifikasi')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_statistik_jawaban/parameter/subjek_print.blade.php b/Modules/Analisis/Views/statistik_jawaban/parameter/subjek_print.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_statistik_jawaban/parameter/subjek_print.blade.php rename to Modules/Analisis/Views/statistik_jawaban/parameter/subjek_print.blade.php diff --git a/Modules/Analisis/Views/analisis_statistik_jawaban/parameter/subjek_table.blade.php b/Modules/Analisis/Views/statistik_jawaban/parameter/subjek_table.blade.php similarity index 99% rename from Modules/Analisis/Views/analisis_statistik_jawaban/parameter/subjek_table.blade.php rename to Modules/Analisis/Views/statistik_jawaban/parameter/subjek_table.blade.php index 4230a6b82..aff034caf 100644 --- a/Modules/Analisis/Views/analisis_statistik_jawaban/parameter/subjek_table.blade.php +++ b/Modules/Analisis/Views/statistik_jawaban/parameter/subjek_table.blade.php @@ -17,7 +17,7 @@ @include('admin.layouts.components.notifikasi')
- @include('analisis.menu') + @include('analisis::master.menu')
diff --git a/Modules/Analisis/Views/analisis_statistik_jawaban/table_print.blade.php b/Modules/Analisis/Views/statistik_jawaban/table_print.blade.php similarity index 100% rename from Modules/Analisis/Views/analisis_statistik_jawaban/table_print.blade.php rename to Modules/Analisis/Views/statistik_jawaban/table_print.blade.php diff --git a/Modules/Analisis/composer.json b/Modules/Analisis/composer.json index 1f62fad78..cc87c8c9d 100644 --- a/Modules/Analisis/composer.json +++ b/Modules/Analisis/composer.json @@ -1,14 +1,15 @@ { - "name": "opensid-modules/analisi", + "name": "opensid-modules/analisis", "description": "Modul Analisis untuk OpenSID", "license": "GPL-3.0-or-later", "type": "library", "keywords": [ + "analisis", "modules", "opensid" ], "require": { - "php": "^7.4 || ^8.0 || ^8.1" + "php": "^8.1" }, "require-dev": { "mikey179/vfsstream": "1.1.*" diff --git a/Modules/Anjungan/Config/anjungan.php b/Modules/Anjungan/Http/Controllers/BackEnd/AnjunganBaseController.php similarity index 82% rename from Modules/Anjungan/Config/anjungan.php rename to Modules/Anjungan/Http/Controllers/BackEnd/AnjunganBaseController.php index 543045a2b..8eeeae013 100644 --- a/Modules/Anjungan/Config/anjungan.php +++ b/Modules/Anjungan/Http/Controllers/BackEnd/AnjunganBaseController.php @@ -35,6 +35,17 @@ * */ -return [ - 'view_path' => 'anjungan', -]; +defined('BASEPATH') || exit('No direct script access allowed'); + +require_once 'AnjunganBaseController.php'; + +class AnjunganBaseController extends AdminModulController +{ + public function __construct() + { + parent::__construct(); + if (! cek_anjungan()) { + redirect('anjungan'); + } + } +} diff --git a/Modules/Anjungan/Http/Controllers/Admin/Anjungan.php b/Modules/Anjungan/Http/Controllers/BackEnd/AnjunganController.php similarity index 96% rename from Modules/Anjungan/Http/Controllers/Admin/Anjungan.php rename to Modules/Anjungan/Http/Controllers/BackEnd/AnjunganController.php index 65dd09043..308b0fd46 100644 --- a/Modules/Anjungan/Http/Controllers/Admin/Anjungan.php +++ b/Modules/Anjungan/Http/Controllers/BackEnd/AnjunganController.php @@ -40,10 +40,11 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Anjungan extends AdminModulController +class AnjunganController extends AdminModulController { - public $modul_ini = 'anjungan'; - public $sub_modul_ini = 'daftar-anjungan'; + public $modul_ini = 'anjungan'; + public $sub_modul_ini = 'daftar-anjungan'; + public $aliasController = 'anjungan'; public function __construct() { @@ -53,7 +54,7 @@ public function __construct() public function index() { - return view('admin.anjungan.index'); + return view('anjungan::backend.anjungan.index'); } public function datatables() @@ -121,7 +122,7 @@ public function form($id = null) $data['anjungan'] = null; } - return view('admin.anjungan.form', $data); + return view('anjungan::backend.anjungan.form', $data); } public function insert(): void diff --git a/Modules/Anjungan/Http/Controllers/Admin/Anjungan_menu.php b/Modules/Anjungan/Http/Controllers/BackEnd/AnjunganMenuController.php similarity index 95% rename from Modules/Anjungan/Http/Controllers/Admin/Anjungan_menu.php rename to Modules/Anjungan/Http/Controllers/BackEnd/AnjunganMenuController.php index f6ae338b3..610f00863 100644 --- a/Modules/Anjungan/Http/Controllers/Admin/Anjungan_menu.php +++ b/Modules/Anjungan/Http/Controllers/BackEnd/AnjunganMenuController.php @@ -45,10 +45,13 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Anjungan_menu extends AnjunganModulController +require_once 'AnjunganBaseController.php'; + +class AnjunganMenuController extends AnjunganBaseController { - public $modul_ini = 'anjungan'; - public $sub_modul_ini = 'anjungan-menu'; + public $modul_ini = 'anjungan'; + public $sub_modul_ini = 'anjungan-menu'; + public $aliasController = 'anjungan_menu'; public function __construct() { @@ -58,7 +61,7 @@ public function __construct() public function index() { - return view('admin.anjungan_menu.index'); + return view('anjungan::backend.menu.index'); } public function datatables() @@ -128,7 +131,7 @@ public function form($id = null) $data['menu'] = null; } - return view('admin.anjungan_menu.form', $data); + return view('anjungan::backend.menu.form', $data); } public function insert(): void diff --git a/Modules/Anjungan/Http/Controllers/Admin/Anjungan_pengaturan.php b/Modules/Anjungan/Http/Controllers/BackEnd/AnjunganPengaturanController.php similarity index 92% rename from Modules/Anjungan/Http/Controllers/Admin/Anjungan_pengaturan.php rename to Modules/Anjungan/Http/Controllers/BackEnd/AnjunganPengaturanController.php index 5ac218617..f21a4eb2a 100644 --- a/Modules/Anjungan/Http/Controllers/Admin/Anjungan_pengaturan.php +++ b/Modules/Anjungan/Http/Controllers/BackEnd/AnjunganPengaturanController.php @@ -41,10 +41,13 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Anjungan_pengaturan extends AnjunganModulController +require_once 'AnjunganBaseController.php'; + +class AnjunganPengaturanController extends AnjunganBaseController { - public $modul_ini = 'anjungan'; - public $sub_modul_ini = 'pengaturan-anjungan'; + public $modul_ini = 'anjungan'; + public $sub_modul_ini = 'pengaturan-anjungan'; + public $aliasController = 'anjungan_pengaturan'; public function __construct() { @@ -60,7 +63,7 @@ public function index() $data['anjungan_artikel'] = json_decode($data['pengaturan']['anjungan_artikel'], null); $data['slides'] = Galery::where('parrent', 0)->where('enabled', 1)->get(); - return view('admin.anjungan_pengaturan.index', $data); + return view('anjungan::backend.pengaturan.index', $data); } public function update(): void diff --git a/Modules/Anjungan/Http/Controllers/AnjunganBeranda.php b/Modules/Anjungan/Http/Controllers/FrontEnd/AnjunganBerandaController.php similarity index 93% rename from Modules/Anjungan/Http/Controllers/AnjunganBeranda.php rename to Modules/Anjungan/Http/Controllers/FrontEnd/AnjunganBerandaController.php index df071627a..692814e35 100644 --- a/Modules/Anjungan/Http/Controllers/AnjunganBeranda.php +++ b/Modules/Anjungan/Http/Controllers/FrontEnd/AnjunganBerandaController.php @@ -39,7 +39,7 @@ require_once APPPATH . 'controllers/fmandiri/Beranda.php'; -class AnjunganBeranda extends MandiriModulController +class AnjunganBerandaController extends MandiriModulController { public function __construct() { @@ -53,6 +53,6 @@ public function index() { $data['beranda'] = true; - return view('anjungan.beranda.content', $data); + return view('anjungan::frontend.beranda.content', $data); } } diff --git a/Modules/Anjungan/Http/Controllers/Anjungan.php b/Modules/Anjungan/Http/Controllers/FrontEnd/AnjunganController.php similarity index 96% rename from Modules/Anjungan/Http/Controllers/Anjungan.php rename to Modules/Anjungan/Http/Controllers/FrontEnd/AnjunganController.php index 59e7266a2..45316498d 100644 --- a/Modules/Anjungan/Http/Controllers/Anjungan.php +++ b/Modules/Anjungan/Http/Controllers/FrontEnd/AnjunganController.php @@ -42,7 +42,7 @@ defined('BASEPATH') || exit('No direct script access allowed'); -class Anjungan extends WebModulController +class AnjunganController extends WebModulController { public function __construct() { @@ -74,6 +74,6 @@ public function index() $layar = setting('anjungan_layar') == 1 ? 'index' : 'potrait'; - return view("anjungan.{$layar}", $data); + return view("anjungan::frontend.{$layar}", $data); } } diff --git a/Modules/Anjungan/Http/Controllers/AnjunganSurat.php b/Modules/Anjungan/Http/Controllers/FrontEnd/AnjunganSuratController.php similarity index 97% rename from Modules/Anjungan/Http/Controllers/AnjunganSurat.php rename to Modules/Anjungan/Http/Controllers/FrontEnd/AnjunganSuratController.php index ae4cd5349..1dc08414c 100644 --- a/Modules/Anjungan/Http/Controllers/AnjunganSurat.php +++ b/Modules/Anjungan/Http/Controllers/FrontEnd/AnjunganSuratController.php @@ -44,7 +44,7 @@ use App\Models\SyaratSurat; use Mike42\Escpos\PrintConnectors\NetworkPrintConnector; -class AnjunganSurat extends MandiriModulController +class AnjunganSuratController extends MandiriModulController { public function __construct() { @@ -79,7 +79,7 @@ public function buat($id = '') 'form_action' => $form_action, ]; - return view('anjungan.surat.buat', $data); + return view('anjungan::frontend.surat.buat', $data); } public function form($id = '') @@ -101,7 +101,7 @@ public function form($id = '') ]); $this->get_data_untuk_form($surat->url_surat, $data); - return view('anjungan.surat.form', $data); + return view('anjungan::frontend.surat.form', $data); } public function getSyarat($suratMaster) @@ -188,7 +188,7 @@ public function permohonan() ->make(); } - return view('anjungan.surat.permohonan'); + return view('anjungan::frontend.surat.permohonan'); } protected function print_connector() @@ -200,7 +200,7 @@ protected function print_connector() try { $connector = new NetworkPrintConnector($anjungan['printer_ip'], $anjungan['printer_port'], 5); } catch (Exception $e) { - log_message('error', $e->getMessage()); + logger()->error($e->getMessage()); return false; } @@ -257,7 +257,7 @@ public function kirim($id = ''): void 'chat_id' => $this->setting->telegram_user_id, ]); } catch (Exception $e) { - log_message('error', $e->getMessage()); + logger()->error($e->getMessage()); } } } diff --git a/Modules/Anjungan/Http/Controllers/Surat_anjungan.php b/Modules/Anjungan/Http/Controllers/Surat_anjungan.php deleted file mode 100644 index b9d07b608..000000000 --- a/Modules/Anjungan/Http/Controllers/Surat_anjungan.php +++ /dev/null @@ -1,131 +0,0 @@ -is_login->id_pend; - $permohonan = []; - // Cek hanya status = 0 (belum lengkap) yg boleh di ubah - if ($id) { - $obj = PermohonanSurat::where(['id' => $id, 'id_pemohon' => $id_pend, 'status' => 0])->first(); - - if (! $obj) { - redirect('layanan-mandiri/surat_anjungan/buat'); - } - $permohonan = $obj->toArray(); - $form_action = ci_route("layanan-mandiri/surat/form/{$id}"); - } else { - $form_action = ci_route('layanan-mandiri/surat/form'); - } - - $data = [ - 'penduduk_login' => Penduduk::find($id_pend), - 'menu_surat_mandiri' => FormatSurat::kunci(0)->mandiri()->get(), - 'menu_dokumen_mandiri' => SyaratSurat::get()->toArray(), - 'permohonan' => $permohonan, - 'form_action' => $form_action, - ]; - - return view('layanan_mandiri.surat.buat', $data); - } - - public function form($id = '') - { - $id_pend = $this->is_login->id_pend; - - $surat = FormatSurat::find($id); - $syarat_surat = $this->getSyarat($surat->syarat_surat); - $penduduk = Penduduk::find($id_pend) ?? show_404(); - $individu = $penduduk->formIndividu(); - $data = []; - $data = array_merge($data, [ - 'penduduk_login' => $penduduk, - 'syarat_surat' => $syarat_surat, - 'url' => $surat->url_surat, - 'individu' => $individu, - 'anggota' => $penduduk?->keluarga?->anggota?->toArray(), - 'surat_url' => rtrim($_SERVER['REQUEST_URI'], '/clear'), - 'form_action' => ci_route("surat/cetak/{$surat->url_surat}"), - 'cek_anjungan' => $this->cek_anjungan, - 'mandiri' => 1, - 'kembali' => 'Layanan Surat', - ]); - $this->get_data_untuk_form($surat->url_surat, $data); - - return view('layanan_mandiri.surat.form', $data); - } - - public function getSyarat($suratMaster) - { - $syaratSurat = SyaratSurat::query()->get(); - - $data = []; - - $syaratSuratList = json_decode($suratMaster, true); - - foreach ($syaratSurat as $baris) { - if (is_array($syaratSuratList) && in_array($baris->ref_syarat_id, $syaratSuratList)) { - - $data[] = $baris->ref_syarat_nama; - } - } - - return $data; - } - - private function get_data_untuk_form($url, array &$data): void - { - // Panggil 1 penduduk berdasarkan datanya sendiri - $data['penduduk'] = [$data['periksa']['penduduk']]; - - $data['surat_terakhir'] = LogSurat::lastNomerSurat($url); - $data['surat'] = FormatSurat::where('url_surat', $url)->first()->toArray(); - $data['input'] = $this->input->post(); - $data['input']['nomor'] = $data['surat_terakhir']['no_surat_berikutnya']; - $data['format_nomor_surat'] = FormatSurat::format_penomoran_surat($data); - } -} diff --git a/Modules/Anjungan/Providers/AnjunganServiceProvider.php b/Modules/Anjungan/Providers/AnjunganServiceProvider.php new file mode 100644 index 000000000..91ff70aee --- /dev/null +++ b/Modules/Anjungan/Providers/AnjunganServiceProvider.php @@ -0,0 +1,95 @@ +registerViews(); + $this->registerAssets(); + } + + /** + * Register the service provider. + * + * @return void + */ + public function register() + { + } + + /** + * Register views. + */ + public function registerViews(): void + { + $sourcePath = FCPATH . 'Modules' . DIRECTORY_SEPARATOR . $this->moduleName . DIRECTORY_SEPARATOR . 'Views'; + + $this->loadViewsFrom($sourcePath, $this->moduleNameLower); + } + + public function registerAssets() + { + $publicPath = FCPATH . 'assets/modules/' . $this->moduleNameLower; + $assetPath = FCPATH . 'Modules/' . $this->moduleName . '/Views/assets'; + + if (! File::exists($publicPath)) { + File::ensureDirectoryExists(dirname($publicPath), 0755); + File::link($assetPath, $publicPath); + } + } +} diff --git a/Modules/Anjungan/Routes/web.php b/Modules/Anjungan/Routes/web.php index a665b35ff..644ed7c86 100644 --- a/Modules/Anjungan/Routes/web.php +++ b/Modules/Anjungan/Routes/web.php @@ -35,41 +35,44 @@ * */ -Route::group('anjungan', ['namespace' => 'Anjungan/Admin'], static function (): void { - Route::get('/', 'Anjungan@index')->name('admin.anjungan.index'); - Route::get('/datatables', 'Anjungan@datatables')->name('admin.anjungan.datatables'); - Route::get('/form/{id?}', 'Anjungan@form')->name('admin.anjungan.form'); - Route::post('/insert', 'Anjungan@insert')->name('admin.anjungan.insert'); - Route::post('/update/{id?}', 'Anjungan@update')->name('admin.anjungan.update'); - Route::get('/delete/{id?}', 'Anjungan@delete')->name('admin.anjungan.delete'); - Route::post('/delete', 'Anjungan@delete')->name('admin.anjungan.delete-all'); - Route::get('/kunci/{id?}/{val?}', 'Anjungan@kunci')->name('admin.anjungan.kunci'); +// BACKEND +// Anjungan > Daftar Anjungan +Route::group('anjungan', ['namespace' => 'Anjungan/BackEnd'], static function (): void { + Route::get('/', 'AnjunganController@index')->name('admin.anjungan.index'); + Route::get('/datatables', 'AnjunganController@datatables')->name('admin.anjungan.datatables'); + Route::get('/form/{id?}', 'AnjunganController@form')->name('admin.anjungan.form'); + Route::post('/insert', 'AnjunganController@insert')->name('admin.anjungan.insert'); + Route::post('/update/{id?}', 'AnjunganController@update')->name('admin.anjungan.update'); + Route::get('/delete/{id?}', 'AnjunganController@delete')->name('admin.anjungan.delete'); + Route::post('/delete', 'AnjunganController@delete')->name('admin.anjungan.delete-all'); + Route::get('/kunci/{id?}/{val?}', 'AnjunganController@kunci')->name('admin.anjungan.kunci'); }); // Anjungan > Menu -Route::group('anjungan_menu', ['namespace' => 'Anjungan/Admin'], static function (): void { - Route::get('/', 'Anjungan_menu@index')->name('anjungan_menu.index'); - Route::get('/datatables', 'Anjungan_menu@datatables')->name('anjungan_menu.datatables'); - Route::get('/form/{id?}', 'Anjungan_menu@form')->name('anjungan_menu.form'); - Route::post('/insert', 'Anjungan_menu@insert')->name('anjungan_menu.insert'); - Route::post('/update/{id?}', 'Anjungan_menu@update')->name('anjungan_menu.update'); - Route::get('/delete/{id?}', 'Anjungan_menu@delete')->name('anjungan_menu.delete'); - Route::post('/delete', 'Anjungan_menu@delete')->name('anjungan_menu.delete-all'); - Route::get('/lock/{id?}', 'Anjungan_menu@lock')->name('anjungan_menu.lock'); - Route::post('/tukar', 'Anjungan_menu@tukar')->name('anjungan_menu.tukar'); +Route::group('anjungan_menu', ['namespace' => 'Anjungan/BackEnd'], static function (): void { + Route::get('/', 'AnjunganMenuController@index')->name('anjungan_menu.index'); + Route::get('/datatables', 'AnjunganMenuController@datatables')->name('anjungan_menu.datatables'); + Route::get('/form/{id?}', 'AnjunganMenuController@form')->name('anjungan_menu.form'); + Route::post('/insert', 'AnjunganMenuController@insert')->name('anjungan_menu.insert'); + Route::post('/update/{id?}', 'AnjunganMenuController@update')->name('anjungan_menu.update'); + Route::get('/delete/{id?}', 'AnjunganMenuController@delete')->name('anjungan_menu.delete'); + Route::post('/delete', 'AnjunganMenuController@delete')->name('anjungan_menu.delete-all'); + Route::get('/lock/{id?}', 'AnjunganMenuController@lock')->name('anjungan_menu.lock'); + Route::post('/tukar', 'AnjunganMenuController@tukar')->name('anjungan_menu.tukar'); }); // Anjungan > Pengaturan -Route::group('anjungan_pengaturan', ['namespace' => 'Anjungan/Admin'], static function (): void { - Route::get('/', 'Anjungan_pengaturan@index')->name('anjungan_pengaturan.index'); - Route::post('/update', 'Anjungan_pengaturan@update')->name('anjungan_pengaturan.update'); +Route::group('anjungan_pengaturan', ['namespace' => 'Anjungan/BackEnd'], static function (): void { + Route::get('/', 'AnjunganPengaturanController@index')->name('anjungan_pengaturan.index'); + Route::post('/update', 'AnjunganPengaturanController@update')->name('anjungan_pengaturan.update'); }); -Route::group('anjungan-mandiri', ['namespace' => 'Anjungan'], static function (): void { - Route::get('/', 'Anjungan@index')->name('anjungan.index'); - Route::get('/beranda', 'AnjunganBeranda@index')->name('anjungan.beranda.index'); - Route::get('/surat/{id?}', 'AnjunganSurat@buat')->name('anjungan.surat'); - Route::get('/surat/form/{id?}', 'AnjunganSurat@form')->name('anjungan.surat.form'); - Route::post('/surat/kirim', 'AnjunganSurat@kirim')->name('anjungan.surat.kirim'); - Route::get('/permohonan', 'AnjunganSurat@permohonan')->name('anjungan.permohonan'); +// FRONTEND +Route::group('anjungan-mandiri', ['namespace' => 'Anjungan/FrontEnd'], static function (): void { + Route::get('/', 'AnjunganController@index')->name('anjungan.index'); + Route::get('/beranda', 'AnjunganBerandaController@index')->name('anjungan.beranda.index'); + Route::get('/surat/{id?}', 'AnjunganSuratController@buat')->name('anjungan.surat'); + Route::get('/surat/form/{id?}', 'AnjunganSuratController@form')->name('anjungan.surat.form'); + Route::post('/surat/kirim', 'AnjunganSuratController@kirim')->name('anjungan.surat.kirim'); + Route::get('/permohonan', 'AnjunganSuratController@permohonan')->name('anjungan.permohonan'); }); diff --git a/assets/anjungan/css/bootstrap.min.css b/Modules/Anjungan/Views/assets/css/bootstrap.min.css similarity index 100% rename from assets/anjungan/css/bootstrap.min.css rename to Modules/Anjungan/Views/assets/css/bootstrap.min.css diff --git a/assets/anjungan/css/color/casual.css b/Modules/Anjungan/Views/assets/css/color/casual.css similarity index 100% rename from assets/anjungan/css/color/casual.css rename to Modules/Anjungan/Views/assets/css/color/casual.css diff --git a/assets/anjungan/css/color/nature.css b/Modules/Anjungan/Views/assets/css/color/nature.css similarity index 100% rename from assets/anjungan/css/color/nature.css rename to Modules/Anjungan/Views/assets/css/color/nature.css diff --git a/assets/anjungan/css/color/travel.css b/Modules/Anjungan/Views/assets/css/color/travel.css similarity index 100% rename from assets/anjungan/css/color/travel.css rename to Modules/Anjungan/Views/assets/css/color/travel.css diff --git a/assets/anjungan/css/darkmode.css b/Modules/Anjungan/Views/assets/css/darkmode.css similarity index 100% rename from assets/anjungan/css/darkmode.css rename to Modules/Anjungan/Views/assets/css/darkmode.css diff --git a/assets/anjungan/css/default.css b/Modules/Anjungan/Views/assets/css/default.css similarity index 100% rename from assets/anjungan/css/default.css rename to Modules/Anjungan/Views/assets/css/default.css diff --git a/assets/anjungan/css/screen.css b/Modules/Anjungan/Views/assets/css/screen.css similarity index 100% rename from assets/anjungan/css/screen.css rename to Modules/Anjungan/Views/assets/css/screen.css diff --git a/assets/anjungan/css/style.css b/Modules/Anjungan/Views/assets/css/style.css similarity index 100% rename from assets/anjungan/css/style.css rename to Modules/Anjungan/Views/assets/css/style.css diff --git a/assets/anjungan/images/bg.jpg b/Modules/Anjungan/Views/assets/images/bg.jpg similarity index 100% rename from assets/anjungan/images/bg.jpg rename to Modules/Anjungan/Views/assets/images/bg.jpg diff --git a/assets/anjungan/images/home.svg b/Modules/Anjungan/Views/assets/images/home.svg similarity index 100% rename from assets/anjungan/images/home.svg rename to Modules/Anjungan/Views/assets/images/home.svg diff --git a/assets/anjungan/images/icon/absen.png b/Modules/Anjungan/Views/assets/images/icon/absen.png similarity index 100% rename from assets/anjungan/images/icon/absen.png rename to Modules/Anjungan/Views/assets/images/icon/absen.png diff --git a/assets/anjungan/images/icon/aparatur.png b/Modules/Anjungan/Views/assets/images/icon/aparatur.png similarity index 100% rename from assets/anjungan/images/icon/aparatur.png rename to Modules/Anjungan/Views/assets/images/icon/aparatur.png diff --git a/assets/anjungan/images/icon/browserweb.png b/Modules/Anjungan/Views/assets/images/icon/browserweb.png similarity index 100% rename from assets/anjungan/images/icon/browserweb.png rename to Modules/Anjungan/Views/assets/images/icon/browserweb.png diff --git a/assets/anjungan/images/icon/bukutamu.png b/Modules/Anjungan/Views/assets/images/icon/bukutamu.png similarity index 100% rename from assets/anjungan/images/icon/bukutamu.png rename to Modules/Anjungan/Views/assets/images/icon/bukutamu.png diff --git a/assets/anjungan/images/icon/camera.png b/Modules/Anjungan/Views/assets/images/icon/camera.png similarity index 100% rename from assets/anjungan/images/icon/camera.png rename to Modules/Anjungan/Views/assets/images/icon/camera.png diff --git a/assets/anjungan/images/icon/dark.png b/Modules/Anjungan/Views/assets/images/icon/dark.png similarity index 100% rename from assets/anjungan/images/icon/dark.png rename to Modules/Anjungan/Views/assets/images/icon/dark.png diff --git a/assets/anjungan/images/icon/infopublik.png b/Modules/Anjungan/Views/assets/images/icon/infopublik.png similarity index 100% rename from assets/anjungan/images/icon/infopublik.png rename to Modules/Anjungan/Views/assets/images/icon/infopublik.png diff --git a/assets/anjungan/images/icon/light.png b/Modules/Anjungan/Views/assets/images/icon/light.png similarity index 100% rename from assets/anjungan/images/icon/light.png rename to Modules/Anjungan/Views/assets/images/icon/light.png diff --git a/assets/anjungan/images/icon/mandiri.png b/Modules/Anjungan/Views/assets/images/icon/mandiri.png similarity index 100% rename from assets/anjungan/images/icon/mandiri.png rename to Modules/Anjungan/Views/assets/images/icon/mandiri.png diff --git a/assets/anjungan/images/icon/mandiri2.png b/Modules/Anjungan/Views/assets/images/icon/mandiri2.png similarity index 100% rename from assets/anjungan/images/icon/mandiri2.png rename to Modules/Anjungan/Views/assets/images/icon/mandiri2.png diff --git a/assets/anjungan/images/icon/maximize.png b/Modules/Anjungan/Views/assets/images/icon/maximize.png similarity index 100% rename from assets/anjungan/images/icon/maximize.png rename to Modules/Anjungan/Views/assets/images/icon/maximize.png diff --git a/assets/anjungan/images/icon/minimize.png b/Modules/Anjungan/Views/assets/images/icon/minimize.png similarity index 100% rename from assets/anjungan/images/icon/minimize.png rename to Modules/Anjungan/Views/assets/images/icon/minimize.png diff --git a/assets/anjungan/images/icon/pembangunan.png b/Modules/Anjungan/Views/assets/images/icon/pembangunan.png similarity index 100% rename from assets/anjungan/images/icon/pembangunan.png rename to Modules/Anjungan/Views/assets/images/icon/pembangunan.png diff --git a/assets/anjungan/images/icon/pengaduan.png b/Modules/Anjungan/Views/assets/images/icon/pengaduan.png similarity index 100% rename from assets/anjungan/images/icon/pengaduan.png rename to Modules/Anjungan/Views/assets/images/icon/pengaduan.png diff --git a/assets/anjungan/images/icon/peta.png b/Modules/Anjungan/Views/assets/images/icon/peta.png similarity index 100% rename from assets/anjungan/images/icon/peta.png rename to Modules/Anjungan/Views/assets/images/icon/peta.png diff --git a/assets/anjungan/images/icon/statistik.png b/Modules/Anjungan/Views/assets/images/icon/statistik.png similarity index 100% rename from assets/anjungan/images/icon/statistik.png rename to Modules/Anjungan/Views/assets/images/icon/statistik.png diff --git a/assets/anjungan/images/icon/warna.png b/Modules/Anjungan/Views/assets/images/icon/warna.png similarity index 100% rename from assets/anjungan/images/icon/warna.png rename to Modules/Anjungan/Views/assets/images/icon/warna.png diff --git a/assets/anjungan/images/icon/website.png b/Modules/Anjungan/Views/assets/images/icon/website.png similarity index 100% rename from assets/anjungan/images/icon/website.png rename to Modules/Anjungan/Views/assets/images/icon/website.png diff --git a/assets/anjungan/images/idm.svg b/Modules/Anjungan/Views/assets/images/idm.svg similarity index 100% rename from assets/anjungan/images/idm.svg rename to Modules/Anjungan/Views/assets/images/idm.svg diff --git a/assets/anjungan/images/kehadiran.svg b/Modules/Anjungan/Views/assets/images/kehadiran.svg similarity index 100% rename from assets/anjungan/images/kehadiran.svg rename to Modules/Anjungan/Views/assets/images/kehadiran.svg diff --git a/assets/anjungan/images/keuangan.svg b/Modules/Anjungan/Views/assets/images/keuangan.svg similarity index 100% rename from assets/anjungan/images/keuangan.svg rename to Modules/Anjungan/Views/assets/images/keuangan.svg diff --git a/assets/anjungan/images/lapak.svg b/Modules/Anjungan/Views/assets/images/lapak.svg similarity index 100% rename from assets/anjungan/images/lapak.svg rename to Modules/Anjungan/Views/assets/images/lapak.svg diff --git a/assets/anjungan/images/mandiri.svg b/Modules/Anjungan/Views/assets/images/mandiri.svg similarity index 100% rename from assets/anjungan/images/mandiri.svg rename to Modules/Anjungan/Views/assets/images/mandiri.svg diff --git a/assets/anjungan/images/menu.png b/Modules/Anjungan/Views/assets/images/menu.png similarity index 100% rename from assets/anjungan/images/menu.png rename to Modules/Anjungan/Views/assets/images/menu.png diff --git a/assets/anjungan/images/mode.svg b/Modules/Anjungan/Views/assets/images/mode.svg similarity index 100% rename from assets/anjungan/images/mode.svg rename to Modules/Anjungan/Views/assets/images/mode.svg diff --git a/assets/anjungan/images/perangkat.svg b/Modules/Anjungan/Views/assets/images/perangkat.svg similarity index 100% rename from assets/anjungan/images/perangkat.svg rename to Modules/Anjungan/Views/assets/images/perangkat.svg diff --git a/assets/anjungan/images/peta.svg b/Modules/Anjungan/Views/assets/images/peta.svg similarity index 100% rename from assets/anjungan/images/peta.svg rename to Modules/Anjungan/Views/assets/images/peta.svg diff --git a/assets/anjungan/images/public.svg b/Modules/Anjungan/Views/assets/images/public.svg similarity index 100% rename from assets/anjungan/images/public.svg rename to Modules/Anjungan/Views/assets/images/public.svg diff --git a/assets/anjungan/images/statistik.svg b/Modules/Anjungan/Views/assets/images/statistik.svg similarity index 100% rename from assets/anjungan/images/statistik.svg rename to Modules/Anjungan/Views/assets/images/statistik.svg diff --git a/assets/anjungan/images/tamu.svg b/Modules/Anjungan/Views/assets/images/tamu.svg similarity index 100% rename from assets/anjungan/images/tamu.svg rename to Modules/Anjungan/Views/assets/images/tamu.svg diff --git a/assets/anjungan/js/bootstrap.bundle.min.js b/Modules/Anjungan/Views/assets/js/bootstrap.bundle.min.js similarity index 100% rename from assets/anjungan/js/bootstrap.bundle.min.js rename to Modules/Anjungan/Views/assets/js/bootstrap.bundle.min.js diff --git a/assets/anjungan/js/flickity.js b/Modules/Anjungan/Views/assets/js/flickity.js similarity index 100% rename from assets/anjungan/js/flickity.js rename to Modules/Anjungan/Views/assets/js/flickity.js diff --git a/assets/anjungan/js/jquery.min.js b/Modules/Anjungan/Views/assets/js/jquery.min.js similarity index 100% rename from assets/anjungan/js/jquery.min.js rename to Modules/Anjungan/Views/assets/js/jquery.min.js diff --git a/assets/anjungan/js/support.js b/Modules/Anjungan/Views/assets/js/support.js similarity index 100% rename from assets/anjungan/js/support.js rename to Modules/Anjungan/Views/assets/js/support.js diff --git a/Modules/Anjungan/Views/admin/anjungan/form.blade.php b/Modules/Anjungan/Views/backend/anjungan/form.blade.php similarity index 100% rename from Modules/Anjungan/Views/admin/anjungan/form.blade.php rename to Modules/Anjungan/Views/backend/anjungan/form.blade.php diff --git a/Modules/Anjungan/Views/admin/anjungan/index.blade.php b/Modules/Anjungan/Views/backend/anjungan/index.blade.php similarity index 98% rename from Modules/Anjungan/Views/admin/anjungan/index.blade.php rename to Modules/Anjungan/Views/backend/anjungan/index.blade.php index 94193ea16..4a2106602 100644 --- a/Modules/Anjungan/Views/admin/anjungan/index.blade.php +++ b/Modules/Anjungan/Views/backend/anjungan/index.blade.php @@ -15,7 +15,7 @@ @section('content') @include('admin.layouts.components.notifikasi') @if (!cek_anjungan()) - @include('admin.anjungan.peringatan') + @include('anjungan::backend.anjungan.peringatan') @else
diff --git a/Modules/Anjungan/Views/admin/anjungan/peringatan.blade.php b/Modules/Anjungan/Views/backend/anjungan/peringatan.blade.php similarity index 100% rename from Modules/Anjungan/Views/admin/anjungan/peringatan.blade.php rename to Modules/Anjungan/Views/backend/anjungan/peringatan.blade.php diff --git a/Modules/Anjungan/Views/admin/anjungan_menu/form.blade.php b/Modules/Anjungan/Views/backend/menu/form.blade.php similarity index 100% rename from Modules/Anjungan/Views/admin/anjungan_menu/form.blade.php rename to Modules/Anjungan/Views/backend/menu/form.blade.php diff --git a/Modules/Anjungan/Views/admin/anjungan_menu/index.blade.php b/Modules/Anjungan/Views/backend/menu/index.blade.php similarity index 100% rename from Modules/Anjungan/Views/admin/anjungan_menu/index.blade.php rename to Modules/Anjungan/Views/backend/menu/index.blade.php diff --git a/Modules/Anjungan/Views/admin/anjungan_pengaturan/index.blade.php b/Modules/Anjungan/Views/backend/pengaturan/index.blade.php similarity index 100% rename from Modules/Anjungan/Views/admin/anjungan_pengaturan/index.blade.php rename to Modules/Anjungan/Views/backend/pengaturan/index.blade.php diff --git a/Modules/Anjungan/Views/anjungan/beranda/content.blade.php b/Modules/Anjungan/Views/frontend/beranda/content.blade.php similarity index 98% rename from Modules/Anjungan/Views/anjungan/beranda/content.blade.php rename to Modules/Anjungan/Views/frontend/beranda/content.blade.php index 7129229eb..045356747 100644 --- a/Modules/Anjungan/Views/anjungan/beranda/content.blade.php +++ b/Modules/Anjungan/Views/frontend/beranda/content.blade.php @@ -1,4 +1,4 @@ -@extends('anjungan.beranda.index') +@extends('anjungan::frontend.beranda.index') @push('css') - @endif + + @php + $latarKehadiran = default_file(LATAR_LOGIN . $setting->latar_kehadiran, config('app.default_latar_kehadiran')); + @endphp + + @stack('css') diff --git a/resources/views/kehadiran/left.blade.php b/Modules/Kehadiran/Views/frontend/left.blade.php similarity index 100% rename from resources/views/kehadiran/left.blade.php rename to Modules/Kehadiran/Views/frontend/left.blade.php diff --git a/resources/views/kehadiran/masuk.blade.php b/Modules/Kehadiran/Views/frontend/masuk.blade.php similarity index 97% rename from resources/views/kehadiran/masuk.blade.php rename to Modules/Kehadiran/Views/frontend/masuk.blade.php index 021769ee4..8f348de6e 100644 --- a/resources/views/kehadiran/masuk.blade.php +++ b/Modules/Kehadiran/Views/frontend/masuk.blade.php @@ -1,4 +1,4 @@ -@extends('kehadiran.layouts.index') +@extends('kehadiran::frontend.layouts.index') @section('content') @include('admin.layouts.components.konfirmasi_cookie') @@ -6,7 +6,7 @@