<modal-dialvox v-model="logo" :cancel="traducirFrase('Cancelar')" @closed="closeLogo()" :disabled="true">
    <h4>{{traducirFrase("Logo del cliente")}}</h4>
    <br>
    <form method="post" enctype="multipart/form-data" v-on:submit.prevent="subirLogo" ref="form_logo">
        <div style="display: flex; flex-direction: row; justify-content: center;">
            <img v-if="logo_url !== ''" :src="logo_url" style="width: 200px; height: auto;" />
            <p v-else class="blue-text">No hay logo configurado</p>
        </div>
        <div class="container" style="display:flex;flex-direction:column;">
            <input type="hidden" :value="id_cliente" name="idCliente" />
            <div style="display: flex; flex-direction:row; gap: 1rem;">
                <div class="file-field input-field" style="flex: 1">
                    <div class="btn-small z-depth-0 teal lighten-4 waves-effect waves-light teal-text">
                        <span>{{traducirFrase("Seleccionar imagen")}}</span>
                        <input type="file" name="logo">
                    </div>
                    <div class="file-path-wrapper">
                        <input class="file-path" type="text">
                    </div>
                </div>
            </div>
            <div style="display: flex; flex-direction:column; gap: 0.2rem; padding: 0.8rem 0.2rem;">
                <div style="display: flex; flex-direction: row; gap: 1rem; justify-content:flex-end; margin: 0.2rem 0;">
                    <button class="btn-small z-depth-0 red lighten-4 waves-effect waves-light red-text" type="button" @click="eliminarLogo">
                        Eliminar logo
                    </button>
                    <button class="btn-small z-depth-0 grey lighten-4 waves-effect waves-light blue-grey-text" type="submit">
                        Actualizar logo
                    </button>
                </div>
            </div>
        </div>
    </form>
</modal-dialvox>