<template>
    <div class="row" @keyup.enter="submitForm">
        <div class="col bg-white padding-40 b-rad-lg">
            <div class="row">
                <div class="col text-center">
                    <div class="row m-b-20">
                        <div class="col">
                            <h5 class="all-caps">Approve Invoice</h5>
                            <div class="fs-11">Are you sure you want to approve this invoice?</div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col p-r-5">
                            <div data-dismiss="modal" class="btn btn-sm btn-default bg-master-lighter btn-block b-rad-none">Cancel</div>
                        </div>
                        <div class="col p-l-5">
                            <div class="btn btn-success w-100 btn-sm" @click="submit(route('api.transaction.invoice.approve', data.id), 'put', section, true, true)">Confirm</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
    import modalFormHandler from '../../../general/mixins/modalFormHandler';
    export default {
        mixins: [modalFormHandler]
    }

</script>