{{-- Weight Monitoring (GWG) Test Data for PDF --}}
@php $formatDate = function($date) { if (!$date) return '-'; try { return \Carbon\Carbon::parse($date)->format('d/m/Y'); } catch (\Exception $e) { return '-'; } }; $getBMIStatusLabel = function($status) { $labels = [ 'underweight' => 'Kurang Berat Badan (Underweight)', 'normal' => 'Normal (Normal weight)', 'overweight' => 'Lebih Berat Badan (Overweight)', 'obese' => 'Obes (Obese)', ]; return $labels[$status] ?? '-'; }; @endphp

Nota Penting: Jika tiada maklumat berat ibu sebelum hamil, berat ibu semasa 1st booking POG ≤12/52 boleh digunakan

Baseline Information

Height (cm): {{ data_get($testData, 'height', '-') }} Pre-pregnancy Weight (kg): {{ data_get($testData, 'pre_pregnancy_weight', '-') }} BMI: {{ data_get($testData, 'bmi', '-') }}
BMI Status: {{ $getBMIStatusLabel(data_get($testData, 'bmi_status')) }}

Current Measurement

@if(data_get($testData, 'weight_gain_rate')) @endif
Date: {{ $formatDate(data_get($testData, 'date')) }} Gestational Week: {{ data_get($testData, 'gestational_week', '-') }}
Weight (kg): {{ data_get($testData, 'weight', '-') }} Weight Gain (kg): {{ data_get($testData, 'weight_gain', '-') }}
Weight Gain Rate (kg/week): {{ data_get($testData, 'weight_gain_rate') }}
@if(data_get($testData, 'additional_notes'))

Additional Notes:

{{ data_get($testData, 'additional_notes') }}

@endif @if(data_get($testData, 'name') || data_get($testData, 'signature'))

Responsible Person: {{ data_get($testData, 'name', 'N/A') }}

@if(data_get($testData, 'signature'))
Signature
@endif
@endif