getThreads(); $thread = $block->getSelectedThread(); $entries = $block->getMessages($thread); $order = $block->getOrder(); $orderId = $order ? (int)$order->getEntityId() : (int)($thread['order_id'] ?? 0); $customerName = trim(implode(' ', array_filter([ (string)($thread['customer_firstname'] ?? ($order ? $order->getCustomerFirstname() : '')), (string)($thread['customer_lastname'] ?? ($order ? $order->getCustomerLastname() : '')), ]))); $customerName = $customerName ?: (string)($thread['customer_email'] ?? ($order ? $order->getCustomerEmail() : '')) ?: (string)__('Customer'); ?>
= $escaper->escapeHtml(__('Start an order conversation with this customer.')) ?>
= $escaper->escapeHtml(__('Select a conversation to view and reply.')) ?>