<template>
    <div class="row">
        <div class="col">
            <loading-component style="height: 300px; top: 0;" key="1" color="success" v-show="isLoading" ></loading-component>
            <div class="row justify-content-center" v-show="!isLoading">
                <div class="col">
                    <div class="row m-b-20">
                        <div class="col">
                            <h3 class="all-caps">Are you Sure?</h3>
                            <div class="fs-11">Are you sure you want to {{item.status !== 2 ? 'Activate':'Deactivate'}} <b>{{item.name}}</b> service?</div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col p-r-5">
                            <div class="btn btn-sm btn-default btn-block b-rad-none" data-dismiss="modal">Cancel</div>
                        </div>
                        <div class="col p-l-5">
                            <div class="btn btn-sm btn-block b-rad-none" :class="[{'btn-danger': item.status === 2}, {'btn-success': item.status !== 2}]" @click="submit(route('api.service_type.status', item.id, item.status === 2 ? 'inactive' : 'active'), 'put', section, true, true)">{{item.status !== 2 ? 'Activate':'Deactivate'}}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
    import componentHandler from '../../../general/mixins/componentHandler';
    import ModalFormHandler from '../../../general/mixins/modalFormHandler';
    export default {
        mixins: [componentHandler, ModalFormHandler]

    }
</script>