Sipariş Detayı

Sipariş Bilgileri
<% if (order.status === 'pending') { %> BEKLEMEDE <% } else if (order.status === 'processing') { %> İŞLENİYOR <% } else if (order.status === 'completed') { %> TAMAMLANDI <% } else if (order.status === 'canceled') { %> İPTAL EDİLDİ <% } else { %> <%= (order.status || 'Bilinmiyor').toUpperCase() %> <% } %>
Sipariş ID
<%= order.orderId %>
Oluşturulma Tarihi
<%= new Date(order.createdAt).toLocaleString('tr-TR') %>
<% if (order.updatedAt) { %>
Son Güncelleme
<%= new Date(order.updatedAt).toLocaleString('tr-TR') %>
<% } %>
API Bilgileri
<%= order.apiUrl %>
<%= order.apiOrderId || 'Belirtilmemiş' %>
İstemci Bilgisi
<%= order.ip %>
<% if (order.type === 'package' && order.services) { %>
Servis Detayları
<% order.services.forEach(service => { %> <% }); %>
Servis Adı Adet Durum API ID
<%= service.service %> <%= service.quantity %> <% if (service.status === 'pending') { %> <% } else if (service.status === 'processing') { %> <% } else if (service.status === 'completed') { %> <% } else if (service.status === 'canceled') { %> <% } %> <%= service.status === 'pending' ? 'Beklemede' : service.status === 'processing' ? 'İşleniyor' : service.status === 'completed' ? 'Tamamlandı' : service.status === 'canceled' ? 'İptal Edildi' : service.status %> <%= service.apiOrderId || 'Yok' %>
<% } %>
<% if (order.status === 'pending' || order.status === 'processing') { %> <% } %>