@extends('layouts.nurse') @section('title', 'Edit Health Record') @section('content')
Visit #{{ $record->visit_number }} - {{ $record->formatted_visit_date }}
Patient Name
{{ $record->mother->expectantMother->mother_full_name }}
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) }}Performed: {{ $testResult->performed_at->format('M j, Y g:i A') }}
@can('view', $record) @if(in_array($record->status, ['completed', 'reviewed'])) View Test @else Edit Test @endif @endcanMark this record as completed when all tests are done.