%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/kma/resources/js/components/Registration/
Upload File :
Create Path :
Current File : /home/ugotscom/kma/resources/js/components/Registration/regdetails.vue

<template>
    <div class="container-fluid" >
   
<div class="row" v-for="user in users" :key="user.id">

<span>Contact Details</span>
    <p>{{user.email}}</p>
    <p>{{user.phone}}</p>
     <div class="form-group">
      <label for="pwd">Phone:</label>
      <p>+{{user.cc}}-{{user.phone}}</p>
    </div>

</div>


  
    </div>
</template>

<script>
import addtags from '../addtag.vue'
    export default {
       components: { addtags},
        data(){
        return {
            id:this.$route.params.id,
            clientid:1,
            client_id:'',
            task:'',
            status:'',
            id:this.$route.params.id,
            users:[],
            ref:[],
            ref_name:'',
            ref_id:'',
            tasks:{},  
            activeItem: 'activity',
            properties:{},
            leads:{},
            profiles:[],
            maintenances:[],
            activities:[]

        }
        },

        methods:{
         loadusers(){
                axios.get('/registrations/clientdetails/'+this.id) .then(response => {
                this.users = response.data;
                this.ref_id=this.users[0].refsource;
                this.loadref();
               
             })
            },
                   loadref(){
                axios.get('/client/clientdetails/'+this.ref_id) .then(response => {
                this.ref = response.data;
               this.ref_name=this.ref[0].name;
             })
              
            },
          loadtasks(){
             axios.get('/tasks/gettasksuserid/'+this.id).then(response => {
                this.tasks = response.data
             })
            },
            loadMaintenances(){
             axios.get('/maintenance/maintenancebyclient/'+this.id).then(response => {
                this.maintenances = response.data
             })
            },
                       loadactivities(){
               
                    axios.get('/activities/'+this.id) .then(response => {
                this.activities = response.data;                   
             })
             },
           
      getResults(page = 1) {
			axios.get('/tasks/taskdetails/'+this.id+'?page=' + page)
				.then(response => {
					this.tasks = response.data;
				});
		        },
                        addtask(){
                      axios
            .post('/tasks', {
              client_id: this.client_id,
              task: this.task,
              status:this.status
            })   .then(function (response) {
                //handle success
                console.log(response);
            });
    this.$root.$emit('bv::toggle::collapse', 'example-collapse')
            },    
             	isActive (menuItem) {
      return this.activeItem === menuItem
    },
    setActive (menuItem) {
      this.activeItem = menuItem
    },
    getProperties:function(page = 1) {
			axios.get('/properties/allclientproperties/'+this.id+'?page=' + page)
				.then(response => {
					this.properties = response.data;
				});
		        },
            loadproperties:function(){
             axios.get('/properties/allclientproperties/'+this.id).then(({data})=> (this.properties = data));
            },
             getLeads:function(page = 1) {
			axios.get('/leads/leaddetailsid/'+this.id+'?page=' + page)
				.then(response => {
					this.leads = response.data;
				});
		        },
            loadLeads:function(){
             axios.get('/leads/leaddetailsid/'+this.id).then(({data})=> (this.leads = data));
            },

        },
        created: function(){
            this.loadusers(),
            this.loadtasks(),
            this.loadproperties(),
            this.loadLeads(),
            this.loadMaintenances(),        
            this.loadactivities()

        }
   
    }
</script>
<style scoped>

.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    color: #ffffff;
    background-color: #0d75dd;
    border-color: #dee2e6 #dee2e6 #f8fafc;
}
#tasks ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.profile-title{
  font-size: 1em;
}
</style>

Zerion Mini Shell 1.0