<template>
  <v-form
    ref="form"
    v-model="valid"
    lazy-validation
    @submit.prevent="createAdsItem"
  >
    <v-text-field
      v-model="adsSection.section_code"
      label="section_code"
      required
    ></v-text-field>
    <v-text-field
      v-model="adsSection.display_name"
      label="display_name"
      required
    ></v-text-field>

    <v-btn type="submit"> submit </v-btn>
  </v-form>
</template>

<script>
export default {
  layout: "admin",
  data() {
    return {
      adsSection: {
        display_name: "",
        section_code: "",
      },
    };
  },
  methods: {
    async createAdsItem({ $axios }) {
      let response = await this.$axios.$post(
        "/authorized/admin/advertising/sections/create",
        this.adsSection
      );
    },
  },
  
};
</script>

<style>
</style>