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

Statistici Prezență și Cheltuieli

Înapoi la Prezență
Informații

Perioada: {{ \Carbon\Carbon::create()->month($month)->format('F') }} {{ $year }}

Tarif zilnic: {{ $currentRate ? $currentRate->value . ' RON' : 'Nu este setat' }}

Total copii: {{ count($statistics) }}

@if(count($statistics) > 0)
@foreach($statistics as $stat)
{{ $stat['child']->full_name }}

{{ $stat['child']->group->name ?? 'Fără grup' }}

{{ $stat['child']->age }} ani
{{ $stat['present_days'] }}
Prezențe
{{ $stat['absent_days'] }}
Absențe
{{ $stat['total_days'] }}
Total
Prezență: {{ $stat['total_days'] > 0 ? round(($stat['present_days'] / $stat['total_days']) * 100, 1) : 0 }}%
Cheltuială totală: {{ $stat['total_cost'] }} RON
Tarif zilnic: {{ $stat['daily_cost'] }} RON
@endforeach
Rezumat {{ \Carbon\Carbon::create()->month($month)->format('F') }} {{ $year }}
{{ collect($statistics)->sum('present_days') }}
Total Prezențe
{{ collect($statistics)->sum('absent_days') }}
Total Absențe
{{ collect($statistics)->sum('total_days') }}
Total Zile
{{ collect($statistics)->sum('total_cost') }} RON
Total Cheltuieli
@else

Nu există date pentru această perioadă

Nu aveți copii aprobați sau nu există înregistrări de prezență pentru perioada selectată.

@endif
@endsection