@php $providerCount = count($providers ?? []); $activeGatewayCount = collect($providers ?? [])->filter(fn ($p) => ($p['gateway_is_active'] ?? null) === true)->count(); $integratedCount = collect($providers ?? [])->filter(fn ($p) => (bool) ($p['has_integration'] ?? false))->count(); @endphp

SMS Provider Weightage

Manage provider-level routing weightage and credential JSON in one place.

Total Weightage
{{ number_format((float) $this->totalWeightage, 2) }}%
SMS Providers
{{ $providerCount }}
Gateway Active
{{ $activeGatewayCount }}
Integrated
{{ $integratedCount }}
@if (!empty($statusMessage))
{{ $statusMessage }}
@endif @error('weightages_total')
{{ $message }}
@enderror
@if (empty($providers))
No active SMS providers found.
@else
Provider Routing Matrix
@foreach ($providers as $provider) @php $providerId = (int) ($provider['id'] ?? 0); $hasIntegration = (bool) ($provider['has_integration'] ?? false); @endphp @endforeach
Provider Gateway Status Weightage (%)
{{ $provider['name'] ?? ('Provider #' . $providerId) }}
Type: {{ strtoupper((string) ($provider['type'] ?? 'sms')) }}
{{ $hasIntegration ? 'Integrated for this app' : 'No integration row found for this app' }}
@php $gatewayActive = $provider['gateway_is_active'] ?? null; @endphp @if ($gatewayActive === true) Active @elseif ($gatewayActive === false) Inactive @else Unknown @endif
0 to 100
@error('weightages.' . $providerId)
{{ $message }}
@enderror
@endif
Grafana SMS Logs
@if (!empty($grafanaLogsUrl)) Open in New Tab @endif
@if (empty($grafanaLogsUrl))
Set SMS_GRAFANA_LOGS_URL in your environment to load Grafana logs in this tab.
@else
If the dashboard does not load, ensure Grafana allows iframe embedding for this domain.
@endif