This commit is contained in:
jilhanhaura 2023-09-04 09:29:01 +07:00
parent edb574db71
commit 62814cd226
9 changed files with 81 additions and 59 deletions

17
package-lock.json generated
View File

@ -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",

View File

@ -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"
}
}

View File

@ -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;

View File

@ -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,
});
});

View File

@ -195,6 +195,10 @@
});
});
</script>
<script src="assets/modules/sweetalert/sweetalert.min.js"></script>
<!-- Page Specific JS File -->
<script src="assets/js/page/modules-sweetalert.js"></script>
</body>

View File

@ -15,7 +15,7 @@
class="fas fa-columns"></i><span>Transaction</span></a></li>
<li><a class="nav-link" href="/history_refund"><i class="far fa-square"></i> <span>List Refund</span></a>
</li>
<li><a class="nav-link" href="/setting"><i class="fa fa-cog"></i> <span>Setting</span></a></li>
<li><a class="nav-link" href="/setting"><i class="fas fa-cog"></i> <span>Setting</span></a></li>
</ul>
</aside>
</div>

View File

@ -24,27 +24,27 @@
<br><br>
<div class="row">
<div class="col-2"><strong>ID Order</strong></div>
<div class="col">{{ $DetailRefund['orderId'] }}</div>
<div class="col">: {{ $DetailRefund['orderId'] }}</div>
</div><br>
<div class="row">
<div class="col-2"><strong>Customer Name</strong></div>
<div class="col">{{ $DetailRefund['customer'] }}</div>
<div class="col">: {{ $DetailRefund['customer'] }}</div>
</div><br>
<div class="row">
<div class="col-2"><strong>Seller Name</strong></div>
<div class="col">{{ $DetailRefund['seller'] }}</div>
<div class="col">: {{ $DetailRefund['seller'] }}</div>
</div><br>
<div class="row">
<div class="col-2"><strong>Total</strong></div>
<div class="col">{{ $DetailRefund['total'] }}</div>
<div class="col">: {{ $DetailRefund['total'] }}</div>
</div><br>
<div class="row">
<div class="col-2"><strong>Due Date</strong></div>
<div class="col">{{ $DetailRefund['date'] }}</div>
<div class="col">: {{ $DetailRefund['date'] }}</div>
</div><br>
<div class="row">
<div class="col-2"><strong>Reason Complaint</strong></div>
<div class="col justified-text">{{ $DetailRefund['complaint'] }}</div>
<div class="col justified-text">: {{ $DetailRefund['complaint'] }}</div>
</div>
<div class="d-flex justify-content-center mt-3">

View File

@ -34,8 +34,10 @@
<input type="text" class="form-control" required=""></input>
</div>
</div>
<div class="card-footer text-right">
<button class="btn btn-primary">Submit</button>
<div class="card">
<div class="card-body text-center">
<button class="btn btn-primary" id="swal-2">Submit</button>
</div>
</div>
</form>
</div>

View File

@ -18,7 +18,7 @@
</div>
</div>
<div class="row mt-sm-4">
<div class="col-12 col-md-12 col-lg-5">
<div class="col-12 col-md-12 col-lg-3">
<div class="row">
<div class="col-12">
<div class="activities">
@ -81,7 +81,7 @@
</div>
</div>
</div>
<div class="col-12 col-md-12 col-lg-7">
<div class="col-12 col-md-12 col-lg-9">
<div class="card">
<div class="card-body">
<div class="card-title pb-2 m-0">