@php // Helper function to get test data value $getData = function($key, $default = '') use ($testResult) { if (!$testResult || !$testResult->test_data) return $default; return data_get($testResult->test_data, $key, $default); }; @endphp @extends('layouts.mother') @section('content')

Blood Sugar Monitoring

Pemantauan Paras Gula Dalam Darah

@if($testResult)

Nota Penting

Untuk: Ibu Diabetes

Sasaran: Pre meal ≤5.3mmol/L, 1H post meal ≤7.8mmol/L, 2H post meal ≤6.7mmol/L

⚠️ Awasi: Tanda-tanda hypoglasemia dan bacaan tidak boleh ≤4.0 mmol/L

Monitoring Date

Date of blood sugar monitoring

{{ $getData('date') ? \Carbon\Carbon::parse($getData('date'))->format('d/m/Y') : 'Not recorded' }}

Blood Sugar Readings

Blood sugar levels throughout the day (mmol/L)

{{ $getData('breakfast') ?: 'Not recorded' }} @if($getData('breakfast')) mmol/L @endif
{{ $getData('lunch') ?: 'Not recorded' }} @if($getData('lunch')) mmol/L @endif
{{ $getData('dinner') ?: 'Not recorded' }} @if($getData('dinner')) mmol/L @endif
{{ $getData('pre_bed') ?: 'Not recorded' }} @if($getData('pre_bed')) mmol/L @endif
@if($getData('notes'))

Clinical Notes

Additional observations or remarks

{{ $getData('notes') }}
@endif @if($testResult->performed_by_nurse_id)

Nurse Information

Recorded by

{{ $testResult->performedByNurse->name ?? 'N/A' }}
{{ $testResult->performed_at ? \Carbon\Carbon::parse($testResult->performed_at)->format('d/m/Y H:i') : 'N/A' }}
@if($testResult->signature_data)
Nurse Signature
@endif
@endif
@else

No Blood Sugar Monitoring Data

This test has not been recorded yet.

Back to Record
@endif
@endsection