@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'الملاحظات الصحية' : 'Health Notes') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; @endphp @section('content')
{{ $isArabic ? 'الملاحظات الصحية' : 'Health Notes' }}

{{ $isArabic ? 'تسجيل الملاحظات ومتابعة الحالات الصحية' : 'Health Notes & Case Tracking' }}

{{ $isArabic ? 'إجمالي الملاحظات' : 'Total notes' }}

{{ $noteStats['total'] }}

{{ $isArabic ? 'ملاحظات عاجلة' : 'Urgent notes' }}

{{ $noteStats['urgent'] }}

{{ $isArabic ? 'مُرسلة لولي الأمر' : 'Shared with parent' }}

{{ $noteStats['shared'] }}

{{ $isArabic ? 'سجل الملاحظات' : 'Notes Log' }}

@foreach($noteCards as $note)

{{ $note['title'] }}

{{ $priorities[$note['model']->priority] ?? $note['model']->priority }} {{ $statuses[$note['model']->status] ?? $note['model']->status }}
{{ $isArabic ? 'الطالب:' : 'Student:' }} {{ $note['student_name'] }} {{ $isArabic ? 'الفصل:' : 'Class:' }} {{ $note['class_name'] }} {{ $isArabic ? 'ولي الأمر:' : 'Parent:' }} {{ $note['parent_name'] }} {{ $isArabic ? 'المتابعة:' : 'Follow-up:' }} {{ $note['follow_up_label'] }}

{{ $note['note'] }}

@csrf @method('PATCH')
@csrf
@endforeach @if($noteCards->isEmpty())

{{ $isArabic ? 'لا توجد ملاحظات صحية حاليًا' : 'No health notes right now' }}

{{ $isArabic ? 'أضيفي أول ملاحظة من النموذج الجانبي لتبدأي المتابعة.' : 'Add the first note from the side form to start tracking.' }}

@endif
@if(method_exists($notes, 'links'))
{{ $notes->links() }}
@endif

{{ $isArabic ? 'إضافة ملاحظة جديدة' : 'Add new note' }}

@csrf
@error('student_id')

{{ $message }}

@enderror
@endsection