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

Бронирования

<%- include('../partials/admin-nav', { adminNav: 'reservations' }) %>
<% const resStatus = { active: 'Активна', fulfilled: 'Выполнена', cancelled: 'Отменена', expired: 'Истекла' }; %> <% reservations.forEach(r => { %> <% }) %>
Клиент Товар Кол-во Статус До Действие
#<%= r.id %> <%= r.user_name %>
<%= r.user_email %>
<%= r.product_name %> <%= r.quantity %> <%= resStatus[r.status] || r.status %> <%= r.status === 'active' ? new Date(r.expires_at).toLocaleString('ru-RU') : '—' %>
<%- include('../partials/layout-end') %>