diff --git a/resources/assets/js/pages/home.vue b/resources/assets/js/pages/home.vue index 4ecbfa8f..317bd534 100644 --- a/resources/assets/js/pages/home.vue +++ b/resources/assets/js/pages/home.vue @@ -514,7 +514,7 @@ export default { dialogFormVisible1: false, formLabelWidth: '0px', bookingTable: [], - cancelledBooking: [], + // cancelledBooking: [], bookingTableComplete: [], url: 'api/booking', completeBookingurl : "api/user-complete-booking", @@ -537,7 +537,7 @@ export default { }, mounted () { this.getBooking() - this.getCancelledBookings() + // this.getCancelledBookings() this.initBooking() this.getRate() this.getBookingTableComplete() @@ -581,20 +581,20 @@ export default { $this.makePagination(response.data) }) }, - getCancelledBookings(){ - let $this = this - axios.get("booking/cancelled/list").then(response => { - this.cancelledBooking= response.data.data - $this.makePagination(response.data) - }) - }, - cancelBooking(id){ - console.log(id) - let $this = this - axios.post("api/booking/"+id+"/cancel").then(response => { - this.getBooking(); - }) - }, + // getCancelledBookings(){ + // let $this = this + // axios.get("booking/cancelled/list").then(response => { + // this.cancelledBooking= response.data.data + // $this.makePagination(response.data) + // }) + // }, + // cancelBooking(id){ + // console.log(id) + // let $this = this + // axios.post("api/booking/"+id+"/cancel").then(response => { + // this.getBooking(); + // }) + // }, getBookingTableComplete(){ let $this = this axios.get(this.completeBookingurl).then(response => {