diff --git a/package-lock.json b/package-lock.json index c7ae8b89..352e097f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,8 @@ "packages": { "": { "dependencies": { - "datatables.net-dt": "^1.13.6" + "datatables.net-dt": "^1.13.6", + "sweetalert2": "^11.7.27" }, "devDependencies": { "axios": "^1.1.2", @@ -642,6 +643,15 @@ "node": ">=0.10.0" } }, + "node_modules/sweetalert2": { + "version": "11.7.27", + "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.7.27.tgz", + "integrity": "sha512-QbRXGQn1sb7HEhzA/K2xtWIwQHh/qkSbb1w6jYcTql2xy17876lTREEt1D4X6Q0x2wHtfUjKJ+Cb8IVkRoq7DQ==", + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/limonte" + } + }, "node_modules/vite": { "version": "4.4.9", "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", @@ -1049,6 +1059,11 @@ "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", "dev": true }, + "sweetalert2": { + "version": "11.7.27", + "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.7.27.tgz", + "integrity": "sha512-QbRXGQn1sb7HEhzA/K2xtWIwQHh/qkSbb1w6jYcTql2xy17876lTREEt1D4X6Q0x2wHtfUjKJ+Cb8IVkRoq7DQ==" + }, "vite": { "version": "4.4.9", "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", diff --git a/package.json b/package.json index d7bca76d..b64dcc8e 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "vite": "^4.0.0" }, "dependencies": { - "datatables.net-dt": "^1.13.6" + "datatables.net-dt": "^1.13.6", + "sweetalert2": "^11.7.27" } } diff --git a/public/assets/css/style.css b/public/assets/css/style.css index d23859dc..c104ec30 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -3537,7 +3537,7 @@ body.sidebar-mini .main-sidebar:after { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03); content: ' '; position: fixed; - background-color: #fff; + background-color: #900C3F; width: 65px; height: 100%; left: 0; diff --git a/public/assets/js/page/modules-sweetalert.js b/public/assets/js/page/modules-sweetalert.js index 55cd9289..6fb78aea 100644 --- a/public/assets/js/page/modules-sweetalert.js +++ b/public/assets/js/page/modules-sweetalert.js @@ -1,62 +1,62 @@ "use strict"; -$("#swal-1").click(function() { - swal('Hello'); +$("#swal-1").click(function () { + swal('Hello'); }); -$("#swal-2").click(function() { - swal('Good Job', 'You clicked the button!', 'success'); +$("#swal-2").click(function () { + swal('Tambah data setting', 'Berhasil', 'success'); }); -$("#swal-3").click(function() { - swal('Good Job', 'You clicked the button!', 'warning'); +$("#swal-3").click(function () { + swal('Good Job', 'You clicked the button!', 'warning'); }); -$("#swal-4").click(function() { - swal('Good Job', 'You clicked the button!', 'info'); +$("#swal-4").click(function () { + swal('Good Job', 'You clicked the button!', 'info'); }); -$("#swal-5").click(function() { - swal('Good Job', 'You clicked the button!', 'error'); +$("#swal-5").click(function () { + swal('Good Job', 'You clicked the button!', 'error'); }); -$("#swal-6").click(function() { - swal({ - title: 'Are you sure?', - text: 'Once deleted, you will not be able to recover this imaginary file!', - icon: 'warning', - buttons: true, - dangerMode: true, +$("#swal-6").click(function () { + swal({ + title: 'Are you sure?', + text: 'Once deleted, you will not be able to recover this imaginary file!', + icon: 'warning', + buttons: true, + dangerMode: true, }) - .then((willDelete) => { - if (willDelete) { - swal('Poof! Your imaginary file has been deleted!', { - icon: 'success', - }); - } else { - swal('Your imaginary file is safe!'); - } + .then((willDelete) => { + if (willDelete) { + swal('Poof! Your imaginary file has been deleted!', { + icon: 'success', + }); + } else { + swal('Your imaginary file is safe!'); + } + }); +}); + +$("#swal-7").click(function () { + swal({ + title: 'What is your name?', + content: { + element: 'input', + attributes: { + placeholder: 'Type your name', + type: 'text', + }, + }, + }).then((data) => { + swal('Hello, ' + data + '!'); }); }); -$("#swal-7").click(function() { - swal({ - title: 'What is your name?', - content: { - element: 'input', - attributes: { - placeholder: 'Type your name', - type: 'text', - }, - }, - }).then((data) => { - swal('Hello, ' + data + '!'); - }); +$("#swal-8").click(function () { + swal('This modal will disappear soon!', { + buttons: false, + timer: 3000, + }); }); - -$("#swal-8").click(function() { - swal('This modal will disappear soon!', { - buttons: false, - timer: 3000, - }); -}); \ No newline at end of file diff --git a/resources/views/Admin/layout/main.blade.php b/resources/views/Admin/layout/main.blade.php index e12686a8..7c7f48b3 100644 --- a/resources/views/Admin/layout/main.blade.php +++ b/resources/views/Admin/layout/main.blade.php @@ -195,6 +195,10 @@ }); }); + + + + diff --git a/resources/views/Admin/layout/sidebar.blade.php b/resources/views/Admin/layout/sidebar.blade.php index 747d753e..3300b9ab 100644 --- a/resources/views/Admin/layout/sidebar.blade.php +++ b/resources/views/Admin/layout/sidebar.blade.php @@ -15,7 +15,7 @@ class="fas fa-columns">Transaction
  • List Refund
  • -
  • Setting
  • +
  • Setting
  • diff --git a/resources/views/Admin/refund/detail-refund.blade.php b/resources/views/Admin/refund/detail-refund.blade.php index 0687da36..c37a102c 100644 --- a/resources/views/Admin/refund/detail-refund.blade.php +++ b/resources/views/Admin/refund/detail-refund.blade.php @@ -24,27 +24,27 @@

    ID Order
    -
    {{ $DetailRefund['orderId'] }}
    +
    : {{ $DetailRefund['orderId'] }}

    Customer Name
    -
    {{ $DetailRefund['customer'] }}
    +
    : {{ $DetailRefund['customer'] }}

    Seller Name
    -
    {{ $DetailRefund['seller'] }}
    +
    : {{ $DetailRefund['seller'] }}

    Total
    -
    {{ $DetailRefund['total'] }}
    +
    : {{ $DetailRefund['total'] }}

    Due Date
    -
    {{ $DetailRefund['date'] }}
    +
    : {{ $DetailRefund['date'] }}

    Reason Complaint
    -
    {{ $DetailRefund['complaint'] }}
    +
    : {{ $DetailRefund['complaint'] }}
    diff --git a/resources/views/Admin/setting/add-Data.blade.php b/resources/views/Admin/setting/add-Data.blade.php index f7d1f991..458d20d5 100644 --- a/resources/views/Admin/setting/add-Data.blade.php +++ b/resources/views/Admin/setting/add-Data.blade.php @@ -34,8 +34,10 @@
    - diff --git a/resources/views/Admin/transaction/detail-transaction.blade.php b/resources/views/Admin/transaction/detail-transaction.blade.php index 5ce94026..a1b9a254 100644 --- a/resources/views/Admin/transaction/detail-transaction.blade.php +++ b/resources/views/Admin/transaction/detail-transaction.blade.php @@ -18,7 +18,7 @@
    -
    +
    @@ -81,7 +81,7 @@
    -
    +