Welcome back! Here's what's happening with your SMS gateway today.
Gateways
<%= @stats[:total_gateways] %>
<%= @stats[:online_gateways] %> online
API Keys
<%= @stats[:active_api_keys] %>
of <%= @stats[:total_api_keys] %> total
Messages Today
<%= @stats[:messages_today] %>
Failed Today
<%= @stats[:failed_messages_today] %>
<%= @stats[:pending_messages] %> pending
Latest SMS activity across all gateways
| Message ID | Phone Number | Direction | Status | Gateway | Created |
|---|---|---|---|---|---|
<%= msg.message_id[0..15] %>...
|
<%= msg.phone_number %> | <% if msg.direction == "outbound" %> Outbound <% else %> Inbound <% end %> | <% case msg.status %> <% when "delivered" %> Delivered <% when "sent" %> Sent <% when "failed" %> Failed <% when "pending" %> Pending <% else %> <%= msg.status.titleize %> <% end %> | <%= msg.gateway&.name || "-" %> | <%= time_ago_in_words(msg.created_at) %> ago |
No messages yet
Active gateway devices and their performance
| Name | Device ID | Status | Messages Today | Last Heartbeat |
|---|---|---|---|---|
| <%= link_to gateway.name, admin_gateway_path(gateway), class: "text-sm font-medium text-blue-600 hover:text-blue-500" %> |
<%= gateway.device_id %>
|
<% if gateway.status == "online" %> Online <% else %> Offline <% end %> | <%= gateway.messages_sent_today %> | <%= gateway.messages_received_today %> | <% if gateway.last_heartbeat_at %> <%= time_ago_in_words(gateway.last_heartbeat_at) %> ago <% else %> Never <% end %> |
No gateways registered yet