@extends('layouts.app') @section('content')

Detalii Copil: {{ $child->full_name }}

Înapoi @if(Auth::user()->isParent() && $child->guardian_id === Auth::user()->guardian->id) Editează @elseif(Auth::user()->isAdmin() || Auth::user()->isEducator()) Editează @endif
Informații de Bază
Nume complet:
{{ $child->full_name }}

Vârsta:
{{ $child->age }} ani

Data nașterii:
{{ $child->birth_date->format('d.m.Y') }}

Data înscrierii:
{{ $child->enrollment_date->format('d.m.Y') }}

CNP:
{{ $child->cnp ?? 'Nu este specificat' }}

Status:
@switch($child->status) @case('active') Activ @break @case('inactive') Inactiv @break @case('graduated') Absolvit @break @endswitch
Grupă și Părinte
Grupă:
{{ $child->group->name ?? 'Fără grup' }}

Părinte:
{{ $child->guardian->user->name }}

Email părinte:
{{ $child->guardian->user->email }}

@if($child->guardian->phone)
Telefon părinte:
{{ $child->guardian->phone }}
@endif
Informații Medicale
@if($child->allergies && count($child->allergies) > 0)
Alergii:
{{ implode(', ', $child->allergies) }}

@endif @if($child->medical_conditions && count($child->medical_conditions) > 0)
Condiții medicale:
{{ implode(', ', $child->medical_conditions) }}

@endif @if($child->doctor_name)
Medic de familie:
{{ $child->doctor_name }}

@endif @if($child->doctor_phone)
Telefon medic:
{{ $child->doctor_phone }}

@endif @if($child->medical_certificate_expires_at)
Certificat medical expiră:
@if($child->medical_certificate_expires_at->isPast()) {{ $child->medical_certificate_expires_at->format('d.m.Y') }} (Expirat) @elseif($child->medical_certificate_expires_at->diffInDays() <= 30) {{ $child->medical_certificate_expires_at->format('d.m.Y') }} (Expiră în curând) @else {{ $child->medical_certificate_expires_at->format('d.m.Y') }} @endif
@endif
Statistici Prezență
{{ $child->attendances->where('is_present', true)->count() }}
Prezențe
{{ $child->attendances->where('is_present', false)->count() }}
Absențe
{{ $child->attendances->count() }}
Total zile

{{ $child->absence_count }}
Absențe luna curentă
{{ $child->total_absence_count }}
Total absențe
@if($child->medical_certificate_path || $child->birth_certificate_path)
Documente
@if($child->medical_certificate_path)
Certificat Medical
Document medical
@endif @if($child->birth_certificate_path)
Certificat de Naștere
Document de identitate
@endif
@endif @if($child->notes)
Note

{{ $child->notes }}

@endif @if($child->invoices && $child->invoices->count() > 0)
Facturi Recente
Vezi Toate
@foreach($child->invoices->take(5) as $invoice) @endforeach
Luna/Anul Suma Status Data scadenței
{{ \Carbon\Carbon::create()->month($invoice->month)->format('F') }} {{ $invoice->year }} {{ $invoice->total_amount }} RON @switch($invoice->status) @case('paid') Plătită @break @case('overdue') Restantă @break @default În așteptare @endswitch {{ $invoice->due_date->format('d.m.Y') }}
@endif
@endsection