diff --git a/database/migrations/2022_07_20_154751_create_notifikasi_table.php b/database/migrations/2022_07_20_154751_create_notifikasi_table.php
new file mode 100644
index 0000000..508a41f
--- /dev/null
+++ b/database/migrations/2022_07_20_154751_create_notifikasi_table.php
@@ -0,0 +1,38 @@
+uuid('id')->primary();
+ $table->string("role_from",30);
+ $table->string("role_to",30);
+ $table->uuid('userid');
+ $table->text("message");
+ $table->text("url");
+ $table->boolean("is_read");
+ $table->string("jenis", 50);
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::dropIfExists('notifikasi');
+ }
+}
diff --git a/public/css/app.css b/public/css/app.css
index 63f61b4..2b5749d 100644
--- a/public/css/app.css
+++ b/public/css/app.css
@@ -9,6 +9,10 @@ body{
font-family: "Ubuntu", "Helvetica Neue", Roboto, Arial, "Droid Sans", sans-serif;
}
+.navy-link, .breadcrumb-item a{
+ color:navy !important;
+}
+
.select2-container {
width: 100% !important;
padding: 0;
diff --git a/public/js/app.js b/public/js/app.js
index 57af5d3..94f0d3b 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -181,3 +181,165 @@ calculateDebt = () =>{
$(document).on("change", ".calculate_field_debt", function(){
calculateDebt();
});
+
+
+$('.skpd_search').select2({
+ placeholder: 'Pilih SKPD',
+ ajax: {
+ url: '/skpd-search',
+ dataType: 'json',
+ delay: 250,
+ processResults: function (data) {
+ return {
+ results: $.map(data, function (item) {
+ return {
+ text: item.name,
+ id: item.id
+ }
+ })
+ };
+ },
+ cache: true
+ }
+});
+
+$('.prog_search').select2({
+ placeholder: 'Pilih Program',
+ ajax: {
+ url: '/item-search-prog',
+ dataType: 'json',
+ delay: 250,
+ processResults: function (data) {
+ return {
+ results: $.map(data, function (item) {
+ return {
+ text: item.name,
+ id: item.id
+ }
+ })
+ };
+ },
+ cache: true
+ }
+});
+
+$('.keg_search').select2({
+ placeholder: 'Pilih Kegiatan',
+ ajax: {
+ url: '/item-search-keg',
+ dataType: 'json',
+ delay: 250,
+ processResults: function (data) {
+ return {
+ results: $.map(data, function (item) {
+ return {
+ text: item.name,
+ id: item.id
+ }
+ })
+ };
+ },
+ cache: true
+ }
+});
+
+$('.sk_search').select2({
+ placeholder: 'Pilih Sub Kegiatan',
+ ajax: {
+ url: '/item-search-sk',
+ dataType: 'json',
+ delay: 250,
+ processResults: function (data) {
+ return {
+ results: $.map(data, function (item) {
+ return {
+ text: item.name,
+ id: item.id
+ }
+ })
+ };
+ },
+ cache: true
+ }
+});
+
+$('.rsk_search').select2({
+ placeholder: 'Pilih Rinci Sub Kegiatan',
+ ajax: {
+ url: '/item-search-rsk',
+ dataType: 'json',
+ delay: 250,
+ processResults: function (data) {
+ return {
+ results: $.map(data, function (item) {
+ return {
+ text: item.name,
+ id: item.id
+ }
+ })
+ };
+ },
+ cache: true
+ }
+});
+
+$(document).on("click",".modalButton",function (e){
+ $("#overlayLoader").removeClass("d-flex");
+ $("#overlayLoader").addClass("d-flex");
+ $('.modal-body').html("
");
+ $(".modal-dialog").removeClass("modal-xl modal-lg")
+ $(".modal-dialog").addClass($(this).attr("modal-target"));
+ $('#modal-default')
+ .modal('show')
+ .find('.modal-body')
+ .load($(this).attr('href'),function(){
+ $("#overlayLoader").removeClass("d-flex");
+ $("#overlayLoader").hide();
+ });
+ if ($(this).attr('title')!== null) {
+ $('.modal-title').html($(this).attr('title'));
+ }
+ if ($(this).attr('size')!== null){
+ $('.modal-dialog').addClass($(this).attr('size'));
+ }
+ e.preventDefault();
+});
+
+$(document).on("submit",".form-delete",function (e){
+ e.preventDefault();
+ let test = Swal.fire({
+ title: 'Data akan dihapus?',
+ showDenyButton: true,
+ showCancelButton: false,
+ confirmButtonText: 'Ya',
+ denyButtonText: "Tidak",
+ icon: "warning",
+ }).then((result) => {
+ /* Read more about isConfirmed, isDenied below */
+ if (result.isConfirmed) {
+ e.currentTarget.submit();
+ }
+ })
+});
+
+var url = window.location;
+url = url + "";
+const allLinks = document.querySelectorAll('.nav-item a');
+// const currentLink = [...allLinks].filter(e => {
+// return url.indexOf(e.href) > -1) {
+// return e.href == url;
+// }
+// });
+let currentLink = "";
+allLinks.forEach((val, idx) => {
+ if (url.indexOf(val.href) > -1){
+ currentLink = val;
+ }
+})
+
+$(currentLink).addClass("active")
+$(".has-treeview").removeClass("menu-open active");
+$(currentLink).closest(".has-treeview").addClass("menu-open active");
+$($(currentLink).closest(".has-treeview")).children("a.nav-link").addClass("active");
+$($(currentLink).closest(".nav-treeview")).closest("li.nav-item").addClass("menu-open");
+$($(currentLink).closest(".nav-treeview")).parentsUntil(".nav-sidebar > .nav-treeview").addClass('menu-open');
\ No newline at end of file
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index 3531448..3db85ed 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -50,26 +50,22 @@
@endif
-
-
- @yield('card_header')
-
- @hasSection('content')
- @yield('content')
- @endif
- @yield('content_error')
+
+
+ @yield('card_header')
+
+ @hasSection('content')
+ @yield('content')
+ @endif
+ @yield('content_error')
+
-
+ @include('partials.footer')
@@ -95,11 +91,13 @@
-
+
+ @yield('scripts')
+ @yield('scripts2')
- @yield('scripts')
- @yield('scripts2')
-
diff --git a/resources/views/layouts/auth.blade.php b/resources/views/layouts/auth.blade.php
index ac5fc09..7977ab0 100644
--- a/resources/views/layouts/auth.blade.php
+++ b/resources/views/layouts/auth.blade.php
@@ -3,7 +3,7 @@
- E-SAMASA | Log in
+ E-SAMASA | LOG IN
diff --git a/resources/views/layouts/empty.blade.php b/resources/views/layouts/empty.blade.php
index 790710a..4791091 100644
--- a/resources/views/layouts/empty.blade.php
+++ b/resources/views/layouts/empty.blade.php
@@ -50,20 +50,17 @@
@endif
- @hasSection('content')
- @yield('content')
- @endif
- @yield('content_error')
+
+ @hasSection('content')
+ @yield('content')
+ @endif
+ @yield('content_error')
+
-
+ @include('partials.footer')
@@ -89,11 +86,13 @@
-
+
+ @yield('scripts')
+ @yield('scripts2')
- @yield('scripts')
- @yield('scripts2')