@extends('layouts.nurse') @section('title', 'View Health Record') @section('content')
Visit #{{ $record->visit_number }} - {{ $record->formatted_visit_date }}
This record is {{ $record->status }} and cannot be edited.
Completed records are locked to maintain data integrity.
IC Number
{{ $record->mother->expectantMother->ic_number }}
Color Code
@php $colorCode = $record->mother->expectantMother->current_color_code ?? 'white'; $badgeColors = [ 'red' => 'bg-red-100 text-red-800 border-red-200', 'yellow' => 'bg-yellow-100 text-yellow-800 border-yellow-200', 'green' => 'bg-green-100 text-green-800 border-green-200', 'white' => 'bg-gray-100 text-gray-800 border-gray-200', ]; @endphp {{ ucfirst($colorCode) }}Visit Date
{{ $record->formatted_visit_date }}
Visit Number
Visit #{{ $record->visit_number }}
Gestational Week
{{ $record->gestational_week ? $record->gestational_week . ' weeks' : 'Not recorded' }}
General Notes
{{ $record->general_notes }}
Nurse Remarks
{{ $record->nurse_remarks }}
Performed by: {{ $testResult->performedByNurse->name }}
Date: {{ $testResult->performed_at->format('M j, Y g:i A') }}
View DetailsNo tests have been performed yet
Recorded By
{{ $record->recordedByNurse->name }}
{{ $record->created_at->format('M j, Y g:i A') }}
Last Updated By
{{ $record->updatedByNurse->name }}
{{ $record->updated_at->format('M j, Y g:i A') }}
Linked Appointment
{{ $record->appointment->date?->format('M j, Y') ?? 'N/A' }}
{{ $record->appointment->slot_label ?? 'N/A' }}
Clinic
{{ $record->appointment?->clinic?->name ?? $record->expectantMother?->clinic?->name ?? $record->nurse?->clinic?->name ?? 'N/A' }}