@extends('layouts.master') @section('title', 'Headcount') @section('content')
Reports

Headcount & turnover

{{ $total }} active employees · joiners / leavers {{ $from->format('d M Y') }} – {{ $to->format('d M Y') }}
@include('partials.print-head', ['title' => 'Headcount report'])
Active{{ $total }}
Joined{{ $joiners->count() }}
Left{{ $leavers->count() }}
Gender@foreach ($byGender as $g => $c){{ ucfirst($g ?: 'n/a') }} {{ $c }}@if (!$loop->last) · @endif @endforeach
By department
@foreach ($byDepartment as $d)@endforeach @if ($unassigned)@endif
DepartmentEmployeesShareBasic payroll
{{ $d->name }}{{ $d->active_employees_count }}{{ $total ? round($d->active_employees_count / $total * 100) : 0 }}%{{ money($d->active_employees_sum_basic_salary, false) }}
Unassigned{{ $unassigned }}{{ round($unassigned / max(1, $total) * 100) }}%
By designation
@forelse ($byDesignation as $d)@empty@endforelse
{{ $d->title }}{{ $d->employees_count }}
—
By employment type
@forelse ($byType as $t => $c)@empty@endforelse
{{ \App\Models\Employee::EMPLOYMENT_TYPES[$t] ?? $t }}{{ $c }}
—
Joiners
@forelse ($joiners as $e)@empty@endforelse
EmployeeDepartmentJoined
{{ $e->full_name }}
{{ optional($e->designation)->title }}
{{ optional($e->department)->name }}{{ fmt_date($e->joining_date) }}
None
Leavers
@forelse ($leavers as $e)@empty@endforelse
EmployeeStatusLeftReason
{{ $e->full_name }}{!! status_badge($e->status) !!}{{ fmt_date($e->exit_date) }}{{ $e->exit_reason }}
None
@endsection