{{__('dashboard.cumulative_attendance')}}

@foreach($attendance as $key => $att) @if($key !== 'total')

{{$att->total ?? 0}}

{{$key}}
@elseif($key == 'total')

{{$att->total ?? 0}}

{{__('main.total')}}
@endif @endforeach

{{__('dashboard.typeaccess_product_attendance')}}

@foreach($typeaccessProductAttendance as $key => $attendance) @if($key !== 'details')

{{$key}}

@if(count($attendance) > 2)
@else

{{__("main.no_data")}}

@endif
@if(count($typeaccessProductAttendance['details'][$key]) > 0) @foreach($typeaccessProductAttendance['details'][$key] as $detail) @endforeach
{{__('dashboard.number')}} {{__('main.name')}} {{__('main.total')}}
{{$detail->id}} {{$detail->name}} {{$detail->total}}
{{__('main.total')}} {{$attendance['total']}}
@endif @endif @endforeach

{{__('dashboard.typeaccess_family_attendance')}}

@if(count($typeaccessFamilyAttendance['attendance']['attendance']) > 2)
@foreach($typeaccessFamilyAttendance['attendance']['attendance']['details'] as $detail) @endforeach
{{__('dashboard.number')}} {{__('main.name')}} {{__('main.total')}}
{{$detail[0]->id}} {{$detail[0]->name}} {{$detail[0]->total}}
{{__('main.total')}} {{$typeaccessFamilyAttendance['attendance']['attendance']['total']}}
@else

{{__('main.no_data')}}

@endif

{{__('dashboard.typeaccess_hourly_attendance')}}

@foreach($typeaccessHourlyAttendance as $key => $attendance) @if(count($attendance) > 0)

{{$key}}

@endif @endforeach @if(count($attendance) > 0) @foreach($attendance as $key => $att) @if($key !== 'total') @elseif($key == 'total') @endif @endforeach
{{__('dashboard.typeaccess')}} {{__('main.total')}}
{{$key}} {{$att->total ?? 0}}
{{__('main.total')}} {{$att->total ?? 0}}
@else

{{__('main.no_data')}}

@endif

{{__('dashboard.typeaccess_instantaneous_attendance')}}

@foreach($typeaccessInstantaneousAttendance as $key => $attendance)

{{$key}}

@if(count($attendance) > 0)

{{__('dashboard.maximum_attendance').__('main.colon')}}

@else

{{__('main.no_data')}}

@endif
@endforeach

{{__('dashboard.cumulative_attendance')}}

@foreach($cumulativeAttendance as $key => $att) @if(count($att) > 0)

{{$key}}

@foreach($att as $index => $period) @if($index !== 'day')

{{$period ?? 0}}

{{__('main.'.$index)}}
@endif @endforeach
@endif @endforeach

{{__('dashboard.year_comparison_attendance')}}

@foreach($comparisonAttendance as $key => $att) @if(count($att) > 0)

{{$key}}

@endif @endforeach

{{__('dashboard.occupancy_rate_activities')}}

@if(count($occupancyRateActivities) > 0) @foreach($occupancyRateActivities as $key => $activity) @endforeach
{{__('main.name')}} {{__('dashboard.time')}} {{__('dashboard.number_registration')}} {{__('dashboard.number_occupancy')}} {{__('dashboard.occupancy_rate')}}
{{$activity->name}} {{$activity->Horaire}} {{isset($activity['TauxPresent']) ? $activity['TauxPresent'] : 0}}/{{$activity->max}} {{$activity->EffectifInscrit !== 0 ? round(($activity->EffectifInscrit/$activity->max)*100) : 0}}% {{$activity->TauxPresent !== 0 ? round(($activity->TauxPresent/$activity->max)*100) : 0}}%
@else

{{__('main.no_data')}}

@endif