Historial Clínico
{{ empty($historial['historial']) ? 'Agregar' : 'Editar' }}
{{-- 🔴 ALERTAS --}} @if(!empty($historial['alertas']))
⚠ Alertas Clínicas
@foreach($historial['alertas'] as $alerta) {{ $alerta->titulo }} @endforeach
@endif {{-- 🟡 BADGES RESUMEN --}}
Resumen
@if(($historial['resumen']['diabetes'] ?? null) == 'si') Diabetes @endif @if(($historial['resumen']['hipertension'] ?? null) == 'si') Hipertensión @endif @if(!empty($historial['resumen']['alergias'])) Alergias: {{ $historial['resumen']['alergias'] }} @endif @if(($historial['resumen']['usa_lentes'] ?? null) == 'si') Usa lentes @endif @if(($historial['resumen']['tinnitus'] ?? null) == 'si') Tinnitus @endif
{{-- 🧱 SECCIONES --}}
{{-- GENERALES --}}
Generales
    @foreach($historial['secciones']['antecedentes_generales'] ?? [] as $campo => $data) @if($data['valor'] == 'si')
  • {{ ucfirst(str_replace('_',' ',$campo)) }}: {{ $data['detalle'] ?? 'Sí' }}
  • @endif @endforeach
{{-- OFTALMOLOGÍA --}}
Oftalmología
    @foreach($historial['secciones']['oftalmologia'] ?? [] as $campo => $data) @if($data['valor'] == 'si')
  • {{ ucfirst(str_replace('_',' ',$campo)) }}: {{ $data['detalle'] ?? 'Sí' }}
  • @endif @endforeach
{{-- AUDIOLOGÍA --}}
Audiología
    @foreach($historial['secciones']['audiologia'] ?? [] as $campo => $data) @if($data['valor'] == 'si')
  • {{ ucfirst(str_replace('_',' ',$campo)) }}: {{ $data['detalle'] ?? 'Sí' }}
  • @endif @endforeach
{{-- 📝 OBSERVACIONES --}} @if(!empty($historial['historial']->observaciones_generales))
Observaciones

{{ $historial['historial']->observaciones_generales }}

@endif {{-- 📅 FECHA --}}
Última actualización: @if(!empty($historial['historial']) && $historial['historial']->ultima_actualizacion) {{ $historial['historial']->ultima_actualizacion->format('d/m/Y H:i') }} @else Sin registro @endif