-
+
Status
{{ item.status === 1 ? 'Pending Verification' : item.status === 4 ? 'Rejected' : 'Processing Payment'}}
+
+ {{ item.status === 1 ? 'Pending Verification' : item.status === 4 ? 'Rejected' : 'Processing Payment'}}
+
-
Payment Amount
+
{{ item.type === 6 ? 'Refund' : 'Payment' }} Amount
{{item.currency.short_code}} {{(Math.round((item.amount + Number.EPSILON) * 100) / 100).toFixed(2).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}}
@@ -25,7 +28,7 @@
-
+
-
+
@@ -186,102 +189,6 @@
-
-
-
-
-
-
Refund Type:
-
-
-
- {{refundMethod.name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -292,41 +199,17 @@
data(){
return {
expandPaymentDetails: false,
- expandRefund: false,
- refundMethod: {
- name: 'Partially Refund',
- status: false
- },
amount: (Math.round(1000 * 100) / 100).toFixed(2),
parameters: {
amount: (Math.round(1000 * 100) / 100).toFixed(2),
bank_id: 1
},
- expanded: false,
section: 'bookingDetailSection',
}
},
methods: {
- submitForm(){
- this.submit(this.route('api.booking.refund.create', this.data.booking.id, this.data.id), 'post', this.section, true, true);
- },
- requestRefund(){
- this.expandRefund = !this.expandRefund;
- this.expandPaymentDetails = !this.expandPaymentDetails;
- },
clickExpand(){
- if (this.expandPaymentDetails === false && this.expandRefund === false) {
- this.expandPaymentDetails = !this.expandPaymentDetails;
- } else {
- this.expandRefund = false;
- this.expandPaymentDetails = false;
- }
- },
- updateRefundType(refund){
- this.refundMethod = {
- name: refund.name,
- status: !this.refundMethod.status
- }
+ this.expandPaymentDetails = !this.expandPaymentDetails;
},
},
mixins: [componentHandler]
diff --git a/resources/assets/vue/components/bookings/elements/RefundVerificationComponent.vue b/resources/assets/vue/components/bookings/elements/RefundVerificationComponent.vue
index b947f571..914cb47a 100644
--- a/resources/assets/vue/components/bookings/elements/RefundVerificationComponent.vue
+++ b/resources/assets/vue/components/bookings/elements/RefundVerificationComponent.vue
@@ -10,7 +10,13 @@
Date
- {{ data.booking.created_at }}
+ {{ data.booking.created_at_with_time }}
+
+
+