{{ $patient->name ?? '-' }} | {{ $patient->phone ?? '-' }}

@php $diagnosis = $latestVisit?->diagnosis ? json_decode($latestVisit->diagnosis, true) : []; $maxVisible = 3; $totalCount = count($diagnosis); @endphp
@forelse($diagnosis as $index => $item) {{ $item }} @empty - @endforelse @if($totalCount > $maxVisible) @endif
@if($patient)
Avatar
{{ $patient->gender ?? '-' }}
{{ $patient->age ? $patient->age . ' yrs' : '-' }}
{{ $patient->blood_group ?? '-' }}
{{ $patient->governorate ?? '-' }}
{{ $patient->job ?? '-' }}
{{ $patient->smoker ? 'Yes' : 'No' }}
{{ $patient->alcoholic ? 'Yes' : 'No' }}
Chronic: @php $chronic = json_decode($patient->chronic_diseases ?? '[]', true); @endphp @if (!empty($chronic)) @foreach($chronic as $item) {{ $item }} @endforeach @else - @endif
Note: {{ $patient->notes ?? '-' }}
Complain: {{ $latestVisit->complain ?? '-' }}
@php $diagnosis = $latestVisit?->diagnosis ? json_decode($latestVisit->diagnosis, true) : []; $maxVisible = 3; $totalCount = count($diagnosis); @endphp {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- Diagnosis--}} {{--
--}} {{--
--}} {{-- @forelse($diagnosis as $index => $item)--}} {{-- --}} {{-- {{ $item }}--}} {{-- --}} {{-- @empty--}} {{-- ---}} {{-- @endforelse--}} {{-- @if($totalCount > $maxVisible)--}} {{-- --}} {{-- @endif--}} {{--
--}} {{--
--}}
@endif