@extends('layouts.app') @section('content')

{{ __('app.settings_badge') }}

{{ __('app.sipcaller_settings_title') }}

{{ __('app.sipcaller_settings_description') }}

{{ __('app.portal_domain') }}: {{ $portal?->portal_domain ?? $context['portal_domain'] ?? __('app.not_available') }}

{{ __('app.installation_status') }}: {{ $portal ? __('app.portal_detected') : __('app.portal_missing') }}

{{ __('app.active_account') }}: {{ $account?->account_id ?? __('app.not_available') }}

@if ($errors->any())
@endif @if ($connectionError)
{{ $connectionError }}
@endif

{{ __('app.connection_form_title') }}

@csrf
{{ __('app.load_campaigns') }}

{{ __('app.connection_status_title') }}

  • {{ $portal ? __('app.portal_detected') : __('app.portal_missing') }}
  • {{ $account ? __('app.active_account_detected') : __('app.active_account_missing') }}
  • {{ $campaignOptions !== [] ? __('app.campaigns_loaded', ['count' => count($campaignOptions)]) : __('app.campaigns_not_loaded') }}

{{ __('app.available_campaigns_title') }}

@if ($campaignOptions === [])

{{ __('app.no_campaigns_available') }}

@else
    @foreach ($campaignOptions as $campaign)
  • {{ $campaign['name'] }} ID: {{ $campaign['id'] }}
  • @endforeach
@endif
@endsection