@extends('layouts.app') @section('content')
Data selectată pentru gestionarea prezenței
Nu aveți copii aprobați pentru a gestiona prezența.
| Copil | Grupă | @foreach($weekdays as $day)
{{ $day['day_name_ro'] }}
{{ $day['display'] }}
|
@endforeach
Total Prezențe |
|---|---|---|---|
|
{{ substr($child->first_name, 0, 1) }}{{ substr($child->last_name, 0, 1) }}
{{ $child->full_name }}
@if($child->allergies && count($child->allergies) > 0)
Alergii: {{ implode(', ', $child->allergies) }} @endif |
{{ $child->group->name ?? 'N/A' }} | @php $totalPresent = 0; @endphp @foreach($weekdays as $day) @php $dayAttendance = $weekAttendances->get($day['formatted'], collect())->where('child_id', $child->id)->first(); $isPresent = $dayAttendance ? $dayAttendance->is_present : null; if ($isPresent === true) $totalPresent++; @endphp
@if($isPresent === true)
Prezent
@elseif($isPresent === false)
Absent
@if($dayAttendance && $dayAttendance->absence_reason)
{{ $dayAttendance->absence_reason }} @endif @else N/A @endif |
@endforeach
{{ $totalPresent }}/5 |