{{-- Header --}}

{{ __('Payroll Audit Ledger') }}

{{ __('Review your complete payroll history, payslips, and deductions by year.') }}

{{-- YTD Summary --}}

{{ __('YTD Gross') }}

{{ $currency ?? 'GHS' }} {{ number_format($ytdGross ?? 0, 2) }}

{{ __('YTD Deductions') }}

{{ $currency ?? 'GHS' }} {{ number_format($ytdDeductions ?? 0, 2) }}

{{ __('YTD Net Pay') }}

{{ $currency ?? 'GHS' }} {{ number_format($ytdNet ?? 0, 2) }}

{{ __('Total Payslips') }}

{{ $payslipCount ?? 0 }}

{{-- Payslip History Table --}}

{{ __('Ledger Entries for ') }} {{ $currentYear }}

@forelse($payslips ?? [] as $payslip) @empty @endforelse
{{ __('Period / Date') }} {{ __('Gross') }} {{ __('Net Pay') }} {{ __('Status') }} {{ __('Actions') }}

{{ $payslip['period'] ?? '' }}

{{ $payslip['paid_on'] ?? '' }}

{{ $currency ?? 'GHS' }} {{ number_format($payslip['gross'] ?? 0, 2) }} {{ $currency ?? 'GHS' }} {{ number_format($payslip['net'] ?? 0, 2) }} {{ $payslip['status'] ?? 'pending' }}

{{ __('No payslips found for this year.') }}