@extends('layout.app') @section('body') Gestion des enfants
@if (session('success')) @endif @if ($errors->any()) @endif
{{ strtoupper(substr($child->firstname_child, 0, 1) . substr($child->name_child, 0, 1)) }}

{{ $child->firstname_child }} {{ $child->name_child }} ({{ $child->birthday_child->age }} ans)

{{ $child->class_child }} {{ $child->sex_child }}
Date de naissance
{{ $child->birthday_child?->format('d/m/Y') ?? 'Non renseignée' }}
Lieu de naissance
{{ $child->city_birthday_child ?: 'Non renseigné' }}
N° allocataire CAF
{{ $child->beneficiary_number_caf_child ?: 'Non renseigné' }}
Coefficient CAF
{{ $child->coefficient_caf_child ?: 'Non renseigné' }}
Personnes autorisées à reprendre l'enfant
{{ $child->allow_take_child ?: 'Aucune personne renseignée' }}

Autorisations

Consignes déclarées pour l'enfant.

@php $permissions = [ ['label' => 'Départ seul', 'value' => $child->leave_alone_child], ['label' => 'Sait nager', 'value' => $child->swim_child], ['label' => "Droit à l'image", 'value' => $child->authorized_photo_child], ['label' => 'Participation aux activités', 'value' => $child->authorized_take_activities_child], ['label' => 'Transport autorisé', 'value' => $child->authorized_transport_child], ['label' => 'Soins autorisés', 'value' => $child->authorized_heal_child], ]; @endphp
@foreach ($permissions as $permission)

{{ $permission['label'] }}

{{ $permission['value'] ? 'Oui' : 'Non' }}

@endforeach

Informations sanitaires

Allergies, santé et recommandations.

@php $healthInformation = [ ['label' => 'Allergies', 'value' => $child->allergy_child], ['label' => 'Informations médicales', 'value' => $child->medical_child], ['label' => 'Traitement', 'value' => $child->treatment_child], ['label' => 'Contraintes alimentaires', 'value' => $child->food_constraint_child], ['label' => 'Observations', 'value' => $child->observation_child], ]; @endphp
@foreach ($healthInformation as $information)
{{ $information['label'] }}
{{ $information['value'] ?: 'Aucune information renseignée' }}
@endforeach

Responsables légaux

Ajoutez et gérez les personnes responsables de l’enfant.

{{ $guardians->count() }} responsable{{ $guardians->count() > 1 ? 's' : '' }}
@forelse ($guardians as $guardian)
{{ $guardian->first_name_legal_guardian }} {{ $guardian->name_legal_guardian }}
@csrf @method('PUT') @foreach ([ ['name' => 'first_name_legal_guardian', 'label' => 'Prénom', 'value' => $guardian->first_name_legal_guardian], ['name' => 'name_legal_guardian', 'label' => 'Nom', 'value' => $guardian->name_legal_guardian], ['name' => 'email_legal_guardian', 'label' => 'Email', 'value' => $guardian->email_legal_guardian], ['name' => 'phone_legal_guardian', 'label' => 'Téléphone', 'value' => $guardian->phone_legal_guardian], ] as $field)
@endforeach
@csrf @method('DELETE')
@empty

Aucun responsable légal renseigné.

@endforelse
@csrf

Ajouter un responsable

@foreach ([ ['name' => 'first_name_legal_guardian', 'label' => 'Prénom', 'type' => 'text'], ['name' => 'name_legal_guardian', 'label' => 'Nom', 'type' => 'text'], ['name' => 'email_legal_guardian', 'label' => 'Email', 'type' => 'email'], ['name' => 'phone_legal_guardian', 'label' => 'Téléphone', 'type' => 'text'], ] as $field)
@endforeach
@endsection