result->id, ); } /** * Get the message content definition. */ public function content(): Content { return new Content( markdown: 'emails.speedtest-completed', with: [ 'id' => $this->result->id, 'service' => Str::title($this->result->service), 'serverName' => $this->result->server_name, 'serverId' => $this->result->server_id, 'isp' => $this->result->isp, 'ping' => round($this->result->ping, 2).' ms', 'download' => Number::toBitRate(bits: $this->result->download_bits, precision: 2), 'upload' => Number::toBitRate(bits: $this->result->upload_bits, precision: 2), 'packetLoss' => is_numeric($this->result->packet_loss) ? $this->result->packet_loss : 'n/a', 'url' => url('/admin/results'), ], ); } }