{{-- Settings Form --}}
{{ $this->form }}
Save Settings
{{-- Test API Section --}}
Test API Connection Enter a patient MR Number and hit Test to verify the API is reachable and returning data.
Test Connection Testing...
@if ($testRan && $testResult)
{{-- Status badge --}}
@if ($testResult['success']) Success — HTTP {{ $testResult['status'] }} @else Failed — HTTP {{ $testResult['status'] ?: 'No response' }} @endif
{{-- Patient details if found --}} @if ($testResult['success'] && $testResult['patient']) @php $p = $testResult['patient']; @endphp
Name: {{ $p['PatientTitle'] }} {{ $p['PatientName'] }}
MR No: {{ $p['MRNo'] }}
Gender: {{ $p['Gender'] }}
DOB: {{ $p['DateOfBirth'] }}
Father/Guardian: {{ $p['FatherTitle'] }} {{ $p['FatherName'] }}
Cell: {{ $p['CellNo'] }}
Marital Status: {{ $p['MaritalStatus'] }}
@if($p['CNIC'])
CNIC: {{ $p['CNIC'] }}
@endif
@endif {{-- Raw response --}}
Raw Response
{{ $testResult['raw'] }}
@endif