{{__('menu.dashboard')}} {{$date}}

{{__('dashboard.turnover').__('main.colon')}} {{$turnover}}
@if(count($allTurnoverByProduct) >= 2)
{{__('dashboard.sales_number')}}
{{__('dashboard.sales_turnover')}}
@endif @for($i = 0; $i < count($allTurnoverByProduct) - 2; $i++) @endfor
{{__('dashboard.number')}} {{__('main.name')}} {{__('dashboard.price')}} {{__('dashboard.amount')}} {{__('dashboard.tax_incl_total')}}
{{$allTurnoverByProduct[$i]->id}} {{$allTurnoverByProduct[$i]->name}} {{$allTurnoverByProduct[$i]->price}} {{$allTurnoverByProduct[$i]->amount}} {{$allTurnoverByProduct[$i]->total}}
{{__('main.total')}} {{$allTurnoverByProduct['amount']}} {{$allTurnoverByProduct['total'] ?? 0}}
{{__('dashboard.cumulative_turnover')}}
@foreach($cumulativeTurnovers as $key => $turnover) @if($key !== 'day') @endif @endforeach
{{__('main.week')}} {{__('main.month')}} {{__('main.year')}}
{{$turnover ?? 0}}
{{__('dashboard.comparison_sales')}}
{{__('dashboard.cumulative_attendance')}}
@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}}
{{__('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_hourly_attendance')}}
@foreach($typeaccessHourlyAttendance as $key => $attendance) @if(count($attendance) > 0)
{{$key}}
@endif @endforeach @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}}
{{__('dashboard.typeaccess_instantaneous_attendance')}}
@foreach($typeaccessInstantaneousAttendance as $key => $attendance)
{{$key}}
@if(count($attendance) > 0)

{{__('dashboard.maximum_attendance').__('main.colon')}} {{$maxInstantaneousAttendance[$key]}}

@else

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

@endif
@endforeach
{{__('dashboard.cumulative_attendance')}}
@foreach($cumulativeAttendance as $key => $typeaccess) @foreach($typeaccess as $key => $period) @if($key !== 'day') @endif @endforeach @endforeach
{{__('dashboard.typeaccess')}} {{__('main.week')}} {{__('main.month')}} {{__('main.year')}}
{{$key}}{{$period ?? 0}}
{{__('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.registration_rate')}} {{__('dashboard.number_occupancy')}} {{__('dashboard.occupancy_rate')}}
{{$activity->name}} {{$activity->Horaire}} {{$activity->EffectifInscrit ?? 0 .'/'. $activity->max ?? 0}} {{round($activity->EffectifInscrit /$activity->max, 2)*100 ?? 0}}% {{$activity->TauxPresent ?? 0 .'/'. $activity->max ?? 0}} {{round($activity->TauxPresent/$activity->max, 2)*100 ?? 0}}%
@else

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

@endif @if($weather !== "" && count($toDo) > 0)
@endif @if($weather !== "")

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

{{$weather['min_temperature'] . '°' . ' - ' . $weather['max_temperature'] . '°'}}

@endif @if(count($toDo) > 0)

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

@foreach($toDo as $t) done == 1 ? 'checked' : ''}}> @endforeach
@endif