@php /** @var \App\Models\Payslip $payslip */ $money = static fn ($value): string => \App\Support\MoneyFormatter::format((float) $value, $company['currency'] ?? null); $earnings = $payslip->earningLines(); $deductions = $payslip->deductionLines(); $employer = $payslip->employerLines(); $rate = static fn ($value): string => $value === null ? '—' : number_format((float) $value * 100, 2, ',', ' ').' %'; @endphp Bulletin de paie {{ $payslip->code }}
@include('pdf.partials.company-identity', ['company' => $company, 'showName' => true]) @if (! empty($company['employer_cnps_number']))
N° CNPS employeur : {{ $company['employer_cnps_number'] }}
@endif

Bulletin de paie

{{ $payslip->code }}

Période {{ $payslip->payrollRun->period_start->format('d/m/Y') }} — {{ $payslip->payrollRun->period_end->format('d/m/Y') }}
{{ $payslip->status->label() }}
Salarié
{{ $payslip->employee_full_name }}
Matricule : {{ $payslip->employee_code ?? '—' }}
Poste : {{ $payslip->job_title ?? '—' }} · Classification : {{ $payslip->classification ?? '—' }}
Catégorie : {{ $payslip->professionalCategoryEnum()?->label() ?? ($payslip->professional_category ?? '—') }}
CNPS : {{ $payslip->cnps_number ?? '—' }} · CMU : {{ $payslip->cmu_number ?? '—' }}
Situation : {{ $payslip->maritalStatusEnum()?->label() ?? '—' }} · Enfants à charge : {{ $payslip->dependent_children_count ?? 0 }} · Parts : {{ $payslip->tax_parts !== null ? number_format((float) $payslip->tax_parts, 2, ',', ' ') : '—' }}
Ancienneté : {{ $seniority ?? '—' }}
Paiement : {{ $payslip->paymentMethodEnum()?->label() ?? '—' }} @if ($payslip->mobile_money_provider) · {{ $payslip->mobile_money_provider }} @endif @if ($maskedAccount) · {{ $maskedAccount }} @endif

Gains

@foreach ($earnings as $line) @endforeach
Libellé Qté Taux Montant
{{ $line->label }} {{ $line->quantity !== null ? number_format((float) $line->quantity, 2, ',', ' ') : '—' }} {{ $rate($line->rate) }} {{ $money($line->amount) }}
Brut {{ $money($payslip->gross_salary) }}

Retenues

@foreach ($deductions as $line) @endforeach
Libellé Base Taux Montant
{{ $line->label }} {{ $line->base_amount !== null ? $money($line->base_amount) : '—' }} {{ $rate($line->rate) }} {{ $money($line->amount) }}
Total retenues {{ $money($payslip->total_deductions_amount) }}
Net à payer {{ $money($payslip->net_salary) }}

Cotisations patronales (hors net à payer)

@forelse ($employer as $line) @empty @endforelse
Libellé Base Taux Montant
{{ $line->label }} {{ $line->base_amount !== null ? $money($line->base_amount) : '—' }} {{ $rate($line->rate) }} {{ $money($line->amount) }}
Aucune cotisation patronale

Cumuls annuels {{ $payslip->payrollRun->year }}

Brut Retenues Net
{{ $money($yearToDate['gross']) }} {{ $money($yearToDate['deductions']) }} {{ $money($yearToDate['net']) }}