@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 --}}