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

{{ $parent->name }} ({{ $parent->getTotalEmployeeCount() }})

@lang('employee.contract_type')
{{--
@for ($i = 0; $i < count($countByContractType['names']); $i++)
{{ $countByContractType['names'][$i] }}
{{ $countByContractType['counts'][$i] ?? 0 }}
@endfor
--}}
@lang('employee.category')
{{--
@for ($i = 0; $i < count($countByCategory['names']); $i++)
@lang('employee.' . $countByCategory['names'][$i])
{{ $countByCategory['counts'][$i] ?? 0 }}
@endfor
--}}
@lang('employee.grade')
{{--
@for ($i = 0; $i < count($countByGrade['names']); $i++)
@lang('employee.' . $countByGrade['names'][$i])
{{ $countByGrade['counts'][$i] ?? 0 }}
@endfor
--}}
@lang('employee.gender')
{{--
@for ($i = 0; $i < count($countByGender['names']); $i++)
{{ $countByGender['names'][$i] }}
{{ $countByGender['counts'][$i] ?? 0 }}
@endfor
--}}
@lang('employee.languages')
{{--
@for ($i = 0; $i < count($countByLanguage['names']); $i++)
{{ $countByLanguage['names'][$i] }}
{{ $countByLanguage['counts'][$i] ?? 0 }}
@endfor
--}}
@lang('employee.grade')
{{--
@for ($i = 0; $i < count($countByQualification['names']); $i++)
{{ $countByQualification['names'][$i] }}
{{ $countByQualification['counts'][$i] ?? 0 }}
@endfor
--}}
show all statistics

العدد الكلي ({{ $parent->getTotalEmployeeCount() }})

@forelse ($entity->children()->get() as $child) @if ($child->type != 'class') @endif @empty @endforelse
الاسم عدد الموظفين
{{ $child->name }} {{ $child->getTotalEmployeeCount() }}
@endsection