renderFromTemplate('admin_manual_deposit_pending', $this->vars())['subject'], ); } public function content(): Content { return new Content( htmlString: $this->renderFromTemplate('admin_manual_deposit_pending', $this->vars())['html'], ); } public function attachments(): array { return []; } private function vars(): array { return [ 'transaction_code' => $this->data['transaction_code'] ?? 'N/A', 'created_at' => $this->data['created_at'] ?? now()->format('d/m/Y H:i:s'), 'customer_name' => $this->data['customer_name'] ?? 'N/A', 'customer_email' => $this->data['customer_email'] ?? 'N/A', 'customer_phone_row' => !empty($this->data['customer_phone']) ? 'Số điện thoại' . e($this->data['customer_phone']) . '' : '', 'client_ip_row' => !empty($this->data['client_ip']) ? 'IP gửi yêu cầu' . e($this->data['client_ip']) . '' : '', 'amount_formatted' => number_format((float) ($this->data['amount'] ?? 0), 0, ',', '.') . ' VNĐ', 'proof_row' => !empty($this->data['proof_image_url']) ? 'Chứng từXem chứng từ chuyển khoản' : '', 'company_name' => $this->data['company_name'] ?? 'Portal Admin', ]; } }