<div class="col-12 d-flex justify-content-end mb-3">
    @if ($mode == 'show' || $mode == 'reject' || $mode == 'approve')
        @if ($mode == 'approve')
            <button wire:click.prevent="approve()" class="btn btn-success mr-1 mb-1">
                <i class="far fa-thumbs-up"></i>
                Aprobar
            </button>
        @elseif ($mode == 'reject')
            <button wire:click.prevent="reject()" class="btn btn-danger mr-1 mb-1">
                <i class="far fa-thumbs-down"></i>
                Rechazar
            </button>
        @elseif ($mode == 'show' && ($status == 'created' || $status == 'processing' || ($status == 'sent' && $more_info)))
            <a href="{{ route('quotes.edit', $quote_id) }}" class="btn btn-secondary">
                <i class="fas fa-pencil-alt mr-1"></i> Editar
            </a>
        @endif
    @else
        @if ($status == 'processing' || ($status == 'sent' && $more_info))
            <button wire:click.prevent="send()" class="btn btn-warning mr-1 mb-1">
                <i class="far fa-paper-plane"></i>
                Guardar y Enviar
            </button>
            <span class="sep"></span>
        @endif
        @if ($mode == 'create')
            <button wire:click.prevent="store()" class="btn btn-primary mr-1 mb-1">
                <i class="far fa-save"></i>
                Guardar
            </button>
        @elseif ($mode == 'edit')
            <button wire:click.prevent="update()" class="btn btn-primary mr-1 mb-1">
                <i class="far fa-save"></i>
                Guardar
            </button>
        @endif
    @endif

    <a href="{{ route('quotes') }}" class="btn btn-light-secondary mr-1 mb-1">
        <i class="fas fa-ban"></i>
        Cancelar
    </a>
</div>
