<template>
    <div class="row justify-content-center">
        <div class="col col-md-10">
            <div class="row m-b-20">
                <div class="col">
                    <div class="row m-b-20 text-info">
                        <div class="col text-center">
                            <h3>Approve</h3>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row justify-content-center animate__animated animate__fadeInUpBig animate__delay-1 animate__fast">
                <div class="col col-md-8 no-padding">
                    <div class="row">
                        <div class="col p-l-5">
                            <button type="button" class="btn btn-lg btn-block btn-primary b-rad-none" @click="approveChangeAddress()" >Approve</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
    import componentHandler from '../../../general/mixins/componentHandler';
    import ModalFormHandler from '../../../general/mixins/modalFormHandler';
    export default {
        props: {
            data: {
                type: Object,
                required: true,
            }
        },
        data() {
            return {
                parameters : {
                    order_id: this.data.id,
                }
            }
        },
        methods:{
            approveChangeAddress(){
                this.submit((this.route('api.order.address.change.approve')), 'post', 'orderListSection', true, true);
            },
        },
        mixins: [componentHandler, ModalFormHandler]
    }
</script>