@extends('layout.app') @section('content')
{{ __('Statistiques') }}
@foreach ($stats as $index => $stat) @php $workdays = 260; if (strpos($index, '2021') !== false) { $workdays = 105; } $sum = 0; @endphp @foreach ($stat as $data) @php $sum += $data->nb; @endphp @endforeach
{{ $index }} {{ __('Jour(s)') }} %
{{ $data->activity->label }} {{ $data->nb / Config::get('schedules.daySlots') }} {{ round((($data->nb / Config::get('schedules.daySlots')) / $workdays) * 100) }}%
{{ __('Total') }} {{ $sum / Config::get('schedules.daySlots') }} / {{ $workdays }} {{ round((($sum / 8) / $workdays) * 100) }}%
@endforeach
@endsection @push('styles') @endpush