@php
$integrationConfig = [
'sms_provider' => [
'title' => 'SMS Provider',
'description' => 'Provider for SMS notifications and OTP delivery',
'providers' => $availableProviders['sms_providers'] ?? collect()
],
'email_provider' => [
'title' => 'Email Provider',
'description' => 'Provider for email notifications and alerts',
'providers' => $availableProviders['email_providers'] ?? collect()
],
'payment_gateway' => [
'title' => 'Payment Gateway',
'description' => 'Primary payment processing gateway',
'providers' => $availableProviders['payment_gateways'] ?? collect()
],
'identity_provider' => [
'title' => 'Identity Provider',
'description' => 'KYC and identity verification provider',
'providers' => $availableProviders['identity_providers'] ?? collect()
],
'card_provider' => [
'title' => 'Card Provider',
'description' => 'Virtual card issuance provider',
'providers' => $availableProviders['card_providers'] ?? collect()
],
];
@endphp
@foreach($integrationConfig as $key => $config)
{{ $config['title'] }} *
Select {{ $config['title'] }}
@if($config['providers']->count() > 0)
@foreach($config['providers'] as $provider)
slug ? 'selected' : '' }}>
{{ $provider->name }}
@if($provider->last_test_status === 'success')
✓
@elseif($provider->last_test_status === 'failed')
✗
@endif
@endforeach
@else
No {{ strtolower($config['title']) }}s configured in API Config
@endif
{{ $config['description'] }}
@if($config['providers']->count() === 0)
Configure providers in API Config first
@endif
@endforeach