@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'الملاحظات الاجتماعية' : 'Social Notes') @section('skip_page_hero', true) @php($isArabic = app()->getLocale() === 'ar') @section('content')

{{ $isArabic ? 'الملاحظات الاجتماعية' : 'Social Notes' }}

{{ $isArabic ? 'توثيق الحالة وربطها بولي الأمر' : 'Document the case and connect it to the parent' }}

{{ $isArabic ? 'سجلي ملاحظات الحالة، حددي المتابعة المطلوبة، ثم شاركيها مع ولي الأمر عند الحاجة.' : 'Log the case, define the required follow-up, then share it with the parent when needed.' }}

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

@csrf

{{ $isArabic ? 'سجل الملاحظات الاجتماعية' : 'Social notes log' }}

@foreach($notes as $note)

{{ $note->title }}

{{ $noteStatuses[$note->status] ?? $note->status }} {{ $notePriorities[$note->priority] ?? $note->priority }}
{{ $isArabic ? 'الطالب:' : 'Student:' }} {{ $note->student?->name ?? '—' }} {{ $isArabic ? 'ولي الأمر:' : 'Parent:' }} {{ $note->parentUser?->name ?? ($isArabic ? 'غير محدد' : 'Not assigned') }} {{ $isArabic ? 'تمت المشاركة:' : 'Shared:' }} {{ $note->shared_with_parent_at ? ($isArabic ? 'نعم' : 'Yes') : ($isArabic ? 'لا' : 'No') }}

{{ $note->note }}

@csrf @method('PATCH')
@csrf @method('PATCH')
@csrf
@endforeach @if($notes->isEmpty())
{{ $isArabic ? 'لا توجد ملاحظات اجتماعية حتى الآن.' : 'No social notes yet.' }}
@endif
@if(method_exists($notes, 'links'))
{{ $notes->links() }}
@endif
@endsection