%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/store/booking/
Upload File :
Create Path :
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/store/booking/summary.js

export const state = () => ({
  sessions: [],
  totals: {}
})

export const mutations = {
  setSessions(state, data) {
    state.sessions = data
  },
  setTotals(state, data) {
    state.totals = data
  }
}

export const actions = {
  async get({ commit }, payload) {
    await this.$axios.post('/booking/summary', payload).then((response) => {
      if(response.status == 200) {
        commit('setSessions', response.data.sessions);
        commit('setTotals', response.data.grand_total);
      }
    }).catch((response) => {
      this.loading = false;
    })
  },
}

Zerion Mini Shell 1.0