{{ $patient->name ?? '-' }}
{{ $patient->phone ?? '-' }} @if($patient?->status) Active @endif
@if($patient)
User
{{ $patient->gender ?? '-' }}
{{ $patient->blood_group ?? '-' }}
{{ $patient->phone ?? '-' }}
{{ $patient->age ? $patient->age . ' yrs' : '-' }}
{{ $patient->governorate ?? '-' }}
{{ $patient->job ?? '-' }}
{{ $patient->smoker ? 'Yes' : 'No' }}
{{ $patient->alcoholic ? 'Yes' : 'No' }}
Chronic: {{ $patient->chronic_diseases ?? '-' }}
Note: {{ $patient->notes ?? '-' }}
Complain: {{ $visit->complain ?? '-' }}
@php $diagnosis = $visit?->diagnosis ? json_decode($visit->diagnosis, true) : []; @endphp
Diagnosis
@forelse($diagnosis as $item) {{ $item }} @empty - @endforelse
@if($visit && count($visit->files))
Visit Analysis
@foreach($visit->files as $file) @php $type = strtolower($file->file_type ?? 'other'); $typeClasses = [ 'lab' => ['badge' => 'bg-info text-white', 'icon' => 'fas fa-vials'], 'x-ray' => ['badge' => 'bg-warning text-dark', 'icon' => 'fas fa-x-ray'], 'scan' => ['badge' => 'bg-success text-white', 'icon' => 'fas fa-microscope'], 'other' => ['badge' => 'bg-secondary text-white', 'icon' => 'fas fa-file-medical'], ]; $typeData = $typeClasses[$type] ?? $typeClasses['other']; @endphp
{{ $file->name ?? $file->file_name }}
{{ $file->file_type }} @if($file->notes) • {{ $file->notes }} @endif @if($file->date) • {{ $file->date }} @endif
{{ $type }}
@endforeach
@endif
@endif