method == 'cash' %}
                            <span class="badge bg-success">现金支付</span>
                            {% elif sale.payment_method == 'wechat' %}
                            <span class="badge bg-success">微信支付</span>
                            {% elif sale.payment_method == 'alipay' %}
                            <span class="badge bg-success">支付宝</span>
                            {% elif sale.payment_method == 'card' %}
                            <span class=