@php $now = now(); $defaultPeriodStart = $defaultPeriodStart ?? $now->copy()->startOfMonth()->toDateString(); $defaultPeriodEnd = $defaultPeriodEnd ?? $now->copy()->endOfMonth()->toDateString(); $defaultPeriodLabel = $defaultPeriodLabel ?? $now->format('F Y').' Payroll'; $canCreatePeriod = $canCreatePeriod ?? false; @endphp Payroll home Books hub @if ($canExportPayroll ?? false) @include('loan.accounting.partials.export_buttons') @endif @include('loan.accounting.partials.flash') @if ($canCreatePeriod)

New payroll period

The run includes every Active employee marked Include in HR payroll.

@csrf

Printed on every payslip. Must fall inside the selected payroll month.

@if ($usesOrganizationPlacement ?? false)
@endif
@endif
@if ($usesOrganizationPlacement ?? false) @endif Clear
@if ($usesOrganizationPlacement ?? false) @endif @forelse ($periods as $p) @if ($usesOrganizationPlacement ?? false) @endif @php $progress = $p->paymentProgress(); @endphp @empty @endforelse
Period LabelOrganization unitStatus Payment status Actions
{{ $p->period_start->format('Y-m-d') }} → {{ $p->period_end->format('Y-m-d') }} {{ $p->label ?? '—' }}{{ $p->organizationUnit?->name ?? 'Entire organization' }}{{ $p->status }}
Staff @if ($progress['staff_percent'] === null) — @else {{ $progress['staff_percent'] }}% ({{ $progress['staff_paid'] }}/{{ $progress['staff_total'] }}) @endif Statutory @if ($progress['statutory_percent'] === null) — @else {{ $progress['statutory_percent'] }}% ({{ $progress['statutory_paid'] }}/{{ $progress['statutory_total'] }}) @endif
@include('loan.accounting.books.payroll.partials.period-actions', ['period' => $p])
No payroll periods.
@if ($periods->hasPages())
@endif
@if ($canCreatePeriod) @endif