<thead>
    <tr>
        <th>Order No.</th>
        <th>Date</th>
        <th>Customer</th>
        <th>Status</th>
        <th>Total</th>
    </tr>
</thead>
<tbody>
    {% for order in order_list %}
    <tr class="is-link" onclick="window.location='{% url 'dashboard:order-detail' order.pk %}'">
        <td>No. {{order.pk}} {% if order.subscription %}(subscription){% endif %}</td>
        <td>{{order.created_at|date:"D, M j Y"}}</td>
        <td>{{order.customer.get_full_name}}</td>
        <td>
            <div class="status-display">
                <span class="status-dot status-{{order.status}}"></span> {{order.get_status_display}}
            </div>
        </td>
        <td>${{order.total_amount}}</td>
    </tr>
    {% endfor %}
</tbody>
