BondaCare

Maternal Health Management System
WEIGHT MONITORING (GWG)
Patient Name: {{ $record->mother->expectantMother->mother_full_name ?? $record->mother->name }} IC Number: {{ $record->mother->expectantMother->ic_number ?? 'N/A' }}
Visit Date: {{ $record->visit_date->format('d/m/Y') }} Color Code: {{ strtoupper($record->mother->expectantMother->current_color_code ?? $record->mother->expectantMother->color_code ?? 'WHITE') }}
@php $getData = function($key, $default = '') use ($testResult) { if (!$testResult || !$testResult->test_data) return $default; return data_get($testResult->test_data, $key, $default); }; $formatDate = function($date) { if (!$date) return '-'; try { return \Carbon\Carbon::parse($date)->format('d/m/Y'); } catch (\Exception $e) { return '-'; } }; @endphp
Pre-Pregnancy Information
Parameter Value
Ukuran Tinggi (Height) {{ $getData('height') ?: 'Not recorded' }} cm
Berat Sebelum Hamil (Pre-Pregnancy Weight) {{ $getData('pre_pregnancy_weight') ?: 'Not recorded' }} kg
BMI Sebelum Hamil (Pre-Pregnancy BMI) {{ $getData('bmi') ?: 'Not recorded' }}
Status BMI @php $status = $getData('bmi_status'); $statusLabel = match($status) { 'underweight' => 'Underweight (BMI < 18.5)', 'normal' => 'Normal (BMI 18.5-24.9)', 'overweight' => 'Overweight (BMI 25-29.9)', 'obese' => 'Obese (BMI ≥ 30)', default => 'Not recorded' }; @endphp {{ $statusLabel }}
Current Monitoring
Parameter Value
Tarikh (Date) {{ $formatDate($getData('date')) }}
Minggu Kehamilan (Gestational Week) {{ $getData('gestational_week') ?: 'Not recorded' }}
Berat Semasa (Current Weight) {{ $getData('weight') ?: 'Not recorded' }} kg
Pertambahan Berat (Weight Gain) {{ $getData('weight_gain') ?: 'Not recorded' }} kg
Kadar Pertambahan Berat (Weight Gain Rate) {{ $getData('weight_gain_rate') ?: 'Not recorded' }} kg/week
@if($getData('additional_notes'))
Additional Notes
{{ $getData('additional_notes') }}
@endif @if($testResult && ($testResult->performedByNurse->name || $testResult->signature_data))
Nurse Information
Nurse Name: {{ $testResult->performedByNurse->name ?? 'N/A' }}
Date Recorded: {{ $testResult->performed_at ? \Carbon\Carbon::parse($testResult->performed_at)->format('d/m/Y H:i') : 'N/A' }}
@if($testResult->signature_data)
Signature:
Nurse Signature
@endif
@endif