@extends('layouts.app') @section('title', 'Edit SIP Trunk: ' . optional($endpoint)->id) @section('content') {{-- ── PAGE HEADER ── --}}

Edit SIP Trunk: {{ optional($endpoint)->id ?? 'Unknown' }}

@php $epStatus = strtoupper($endpoint->status ?? 'UNKNOWN'); @endphp {{ ucfirst(strtolower($epStatus)) }} @if(!empty($endpoint->status_detail)) Last checked: Today  |  {{ $endpoint->status_detail }} @endif
@php $trunkEnabled = ($meta->status ?? 'enabled') === 'enabled'; @endphp
@csrf
{{-- ── PROVIDER INFO BAR ── --}}
{{ optional($endpoint)->description ?: 'SIP Trunk' }}
{{ optional($endpoint)->id }}
@if(!$trunkEnabled) Disabled @if($meta->disabled_by ?? false) by {{ $meta->disabled_by }}{{ $meta->disabled_at ? ' · ' . \Carbon\Carbon::parse($meta->disabled_at)->diffForHumans() : '' }} @endif @endif Trunk Type SIP (PJSIP)
{{-- ── DISABLED BANNER ── --}} @if(!$trunkEnabled)
Trunk Disabled — This trunk will not register, send, or receive calls. Click Enable Trunk in the header to restore service.
@endif {{-- ── ALERTS ── --}} @if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @if (isset($errors) && $errors->any())
Please fix:
@endif {{-- ── FORM ── --}}
@csrf @include('trunks._form', [ 'isEdit' => true, 'endpoint' => $endpoint ?? null, 'auth' => $auth ?? null, 'aor' => $aor ?? null, 'reg' => $reg ?? null, 'trunk' => $trunk ?? null, 'codecs' => $codecs ?? [], ])
Cancel
{{-- ── DIAGNOSTICS SECTION ── --}}
Diagnostics
Unknown

Diagnostics Summary
Unknown
Unknown
Unknown
Unknown
Unknown
Unknown

Transport Diagnostics
Unknown
Provisioned Realtime Objects

Carrier Rejection Analysis
Run Test Registration to analyze potential carrier rejection causes
{{-- ── DANGER ZONE ── --}}
Danger Zone
Delete SIP Trunk
Permanently removes this trunk and all associated PJSIP records. This action cannot be undone.
{{-- ── AUDIT LOG ── --}} @if($auditLog->count())
Audit Log
Last {{ $auditLog->count() }} events
@foreach($auditLog as $log) @endforeach
TimeUserActionDetails
{{ \Carbon\Carbon::parse($log->created_at)->format('d M Y H:i') }} {{ $log->user_name ?? '—' }} {{ ucfirst($log->action) }} @php $newVals = json_decode($log->new_values, true) ?? []; @endphp {{ isset($newVals['description']) ? 'Desc: '.$newVals['description'] : (isset($newVals['source']) ? 'Source: '.$newVals['source'] : '') }}
@endif {{-- ── RELOAD FORMS ── --}} {{-- ── DELETE MODAL ── --}} {{-- ── CLONE MODAL ── --}} {{-- ── TOGGLE CONFIRM MODAL ── --}} @endsection