Queue Status
{{ $stats['pending_outbox'] }} pending
@foreach(range(0, 23) as $h) @php $hourData = $stats['trend'][$h] ?? null; @endphp
@endforeach
Sent (24h)
{{ number_format($stats['total_sent']) }}
Received (24h)
{{ number_format($stats['total_received']) }}
Success Rate
{{ $stats['success_rate'] }}%
Avg Latency
{{ $stats['avg_latency'] }}ms

Top Failing Endpoints (24h)

@forelse($stats['top_failing'] as $failure)
{{ $loop->iteration }}

{{ $failure->endpoint->name }}

{{ $failure->endpoint->url }}

{{ $failure->count }} failures
@empty

No failures recorded in the last 24 hours.

@endforelse

Recent Inbound Failures

@forelse($stats['recent_failed_inbound'] as $failed)

{{ $failed->source }}

{{ $failed->error_message }}

{{ $failed->created_at->diffForHumans() }}
@empty

All systems clear. No recent inbound failures.

@endforelse
@if($activeTab === 'outbound')
@if($endpoints->count() > 0)
@foreach($endpoints as $ep) @endforeach
Endpoint Details Status Subscribed Events Actions

{{ $ep->name }}

{{ $ep->url }}

@if($ep->consecutive_failures > 0)
{{ $ep->consecutive_failures }} Failures
@endif @if($ep->last_success_at)

Last success: {{ $ep->last_success_at->diffForHumans() }}

@endif
@if($ep->is_active) Healthy @elseif($ep->consecutive_failures >= 15) Paused (Broken) @else Disabled @endif
@foreach($ep->events as $index => $event) @if($index < 3) {{ $this->flatAvailableEvents[$event] ?? $event }} @endif @endforeach @if(count($ep->events) > 3) +{{ count($ep->events) - 3 }} more @endif
@else

No Webhooks Yet

Connect external APIs, CRMs, or analytics platforms to instantly stream real-time data from HMS.

@endif
@endif @if($activeTab === 'inbound')
@if($sources->count() > 0)
@foreach($sources as $src) @endforeach
Source Configuration Status Authentication Actions

{{ $src->name }}

/api/v1/webhooks/{{ $src->slug }}
@if($src->is_active) Listening @else Disabled @endif @if($src->auth_type === 'secret') HMAC Secret @elseif($src->auth_type === 'bearer') Bearer Token @else No Auth @endif
@else

No Inbound Sources

Create inbound sources to securely receive data from external systems like CRMs or IoT devices.

@endif
@endif @if($showModal)

{{ $activeTab === 'outbound' ? ($editingEndpointId ? 'Edit Endpoint' : 'New Integration') : ($editingSourceId ? 'Edit Source' : 'New Inbound Source') }}

{{ $activeTab === 'outbound' ? 'Connect HMS to external APIs' : 'Receive data from external services' }}

@if($activeTab === 'outbound')
@else @endif
@if($activeTab === 'inbound')
@foreach(['secret' => 'HMAC Secret', 'bearer' => 'Bearer Token', 'open' => 'No Auth (Open)'] as $val => $lbl) @endforeach
@endif @if($activeTab === 'outbound')
@foreach($availableEvents as $category => $events)

{{ $category }}

@foreach($events as $key => $label) @endforeach
@endforeach
@endif @if($authType !== 'open' || $activeTab === 'outbound')
{{ $authType === 'secret' || $activeTab === 'outbound' ? 'Secret Signing Key' : 'Bearer Token' }}
{{ $secret }} ••••••••••••••••••••••••••••••••

{{ $authType === 'secret' || $activeTab === 'outbound' ? 'Used to generate HMAC-SHA256 signatures for every request.' : 'Must be provided in the Authorization header as a Bearer token.' }}

Implementation Example (PHP)
$payload = file_get_contents('php://input');
$signature = $_SERVER['HTTP_X_HMS_SIGNATURE'];
$timestamp = $_SERVER['HTTP_X_HMS_TIMESTAMP'];

// Verify signature using the secret key
$expected = 'sha256=' . hash_hmac('sha256', $timestamp . '.' . $payload, '{{ $secret }}');

if (hash_equals($expected, $signature)) {
    // Verified: Request is authentic
    $data = json_decode($payload, true);
}
@endif
@endif