31 lines
945 B
Vue
31 lines
945 B
Vue
<template>
|
|
<div class="mx-auto">
|
|
<a class="text-yellow-200 rounded bg-gray-400 px-6 py-3 font-bold mr-4 uppercase md:invisible xl:visible">
|
|
CAWANGAN : {{this.cawangan.details_caw }}
|
|
</a>
|
|
<a class="text-yellow-200 rounded bg-gray-400 px-4 py-3 font-bold mr-4 uppercase md:invisible xl:visible">
|
|
<i v-if="this.roles == 'admin'" class="fas fa-1x fa-user-lock"></i>
|
|
<i v-if="this.roles == 'akaun'" class="fas fa-1x fa-calculator"></i>
|
|
</a>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
|
|
export default {
|
|
props: {
|
|
status: String,
|
|
roles: String
|
|
},
|
|
data: function(){
|
|
return{
|
|
cawangan:{}
|
|
}
|
|
},
|
|
created() {
|
|
this.axios.get('http://localhost:8000/api/cawangan/' + this.status).then(response => {
|
|
this.cawangan = response.data;
|
|
});
|
|
}
|
|
}
|
|
</script>
|