      <td>{{ purchase.quantity }}</td>
                <td>{{ purchase.total_value }}</td>
                <td>
                    {% if purchase.delivery_status == 'P' %}
                        <span class="badge badge-pill bg-soft-danger text-danger me-2">
                            Pending
                        </span>
                    {% else %}
                        <span class="badge badge-pill bg-soft-success text-success me-2">
                            Successful
                       