<%- include('../partials/layout-start') %>

Заказы

<% const statusLabels = { pending: 'Ожидает', paid: 'Оплачен', shipped: 'Отправлен', cancelled: 'Отменён' }; %> <% orders.forEach(o => { %> <% }) %>
Клиент Статус Сумма Дата Действие
#<%= o.id %> <%= o.customer_name %>
<%= o.customer_email %>
<%= statusLabels[o.status] || o.status %> <%= formatPrice(o.total_cents) %> <%= new Date(o.created_at).toLocaleString('ru-RU') %>
<%- include('../partials/layout-end') %>