| № заказа | Дата | Покупатель | Сумма | Статус | Действия |
|---|---|---|---|---|---|
| = htmlspecialchars($order['order_number']) ?> | = View::formatDateTime($order['created_at']) ?> |
= htmlspecialchars($order['customer_name']) ?> = htmlspecialchars($order['user_email']) ?> |
= View::formatPrice($order['final_amount']) ?> | '#ffc107', 'processing' => '#17a2b8', 'shipped' => '#007bff', 'completed' => '#28a745', 'cancelled' => '#dc3545' ]; $statusNames = [ 'pending' => 'Ожидает', 'processing' => 'Обработка', 'shipped' => 'Отправлен', 'completed' => 'Завершен', 'cancelled' => 'Отменен' ]; $color = $statusColors[$order['status']] ?? '#666'; $name = $statusNames[$order['status']] ?? $order['status']; ?> = $name ?> | Подробнее |