@extends('layouts.mother') @section('title', 'Mother Dashboard') @section('content')
@if(auth()->user()->expectantMother)

Personal Information

Current Risk Level:
Series Number {{ auth()->user()->expectantMother->series_number }}
Assigned Clinic {{ auth()->user()->clinic->name ?? 'Not assigned' }}
@php $currentAssignment = auth()->user()->expectantMother->currentAssignment; @endphp
@if($currentAssignment)
Assigned Zone {{ $currentAssignment->zone->zone_code }} - {{ $currentAssignment->zone->zone_name }}
Your Nurse {{ $currentAssignment->nurse->name }}
@elseif(auth()->user()->expectantMother->zone_assignment_pending)
Assignment Status Zone assignment pending - A head nurse will assign you to a zone soon
@else
Assignment Status No zone assigned - Please contact the clinic
@endif
@endif @if(session('success'))
{{ session('success') }}
@if(isset($isWelcomePage) && $isWelcomePage)
You will be redirected to your main dashboard in a few seconds...
@endif
@endif @if(session('zone_assignment_success'))
Zone Assignment Successful!
{{ session('zone_assignment_success') }}
@endif @if(session('zone_assignment_pending'))
Zone Assignment Pending
{{ session('zone_assignment_pending') }}
@endif @if(auth()->user()->expectantMother) @php $currentColorCode = auth()->user()->expectantMother->current_color_code ?? 'white'; $colorInfo = [ 'red' => [ 'title' => 'High Risk', 'icon' => 'fas fa-exclamation-triangle', 'bg' => 'bg-red-50', 'border' => 'border-red-200', 'text' => 'text-red-800', 'description' => 'Immediate hospital referral required. Your pregnancy requires specialized care and close monitoring.', 'care' => 'Hospital-based care with specialist supervision' ], 'yellow' => [ 'title' => 'Moderate Risk', 'icon' => 'fas fa-exclamation-circle', 'bg' => 'bg-yellow-50', 'border' => 'border-yellow-200', 'text' => 'text-yellow-800', 'description' => 'Specialist referral recommended. Regular monitoring and shared care with specialists.', 'care' => 'Specialist consultation with shared care' ], 'green' => [ 'title' => 'Low Risk', 'icon' => 'fas fa-info-circle', 'bg' => 'bg-green-50', 'border' => 'border-green-200', 'text' => 'text-green-800', 'description' => 'Health clinic management. Routine monitoring with standard antenatal care.', 'care' => 'Regular clinic-based antenatal care' ], 'white' => [ 'title' => 'No Risk', 'icon' => 'fas fa-check-circle', 'bg' => 'bg-gray-50', 'border' => 'border-gray-200', 'text' => 'text-gray-800', 'description' => 'Community-based care. Your pregnancy is progressing normally with minimal risk factors.', 'care' => 'Nurse-led community care with medical supervision' ] ]; $info = $colorInfo[$currentColorCode]; @endphp

Understanding Your Risk Level: {{ $info['title'] }}

{{ $info['description'] }}

{{ $info['care'] }}

Your risk level is updated after each appointment based on current health assessments. Always attend your scheduled appointments for accurate monitoring.

@endif

Health Records

View your maternal health records and test results

View Records

Appointments

Schedule and manage your clinic appointments

Book Appointment

Baby Tracker

Track your baby's kicks and hiccups

Start Tracking
@endsection