{{-- KPI Cards --}} {{-- Payslip History --}}

{{ __('Official Payslip History') }}

@forelse(($payslips ?? []) as $payslip)

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

{{ $payslip['status'] }}

{{ __('Period Ending: ') }} {{ $payslip['date'] ?? '' }}

{{ __('Download PDF') }}

{{ __('Gross Earned') }}

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

{{ __('Admin Fee Deducted') }}

-GHS {{ number_format($payslip['admin_fee'] ?? 0, 2) }}

{{ __('Net Pay') }}

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

{{ $payslip['sessions_count'] }} {{ __('Verified Sessions') }}
@empty
💰

{{ __('No payslips processed yet') }}

{{ __('Your earnings will appear here once the admin finalizes the payroll period.') }}

@endforelse
{{-- Payroll Audit Trail & Verification --}} @if(count($payslips) > 0)
{{-- Verification --}}
QR Code

{{ __('Verify Latest Payslip') }}

{{ __('Scan to verify authenticity or share the secure link with third parties.') }}

{{ url('/verify-payslip/' . ($payslips[0]['uuid'] ?? '')) }}
{{-- Audit Trail --}}

{{ __('Immutable Audit Trail') }}

{{ __('All payroll records are cryptographically sealed. This ensures absolute payment integrity.') }}

📋 {{ __('Records are append-only and timestamped') }}
🔐 {{ __('Payslips contain a SHA-256 verification hash') }}
🚫 {{ __('No record can be edited after processing') }}
@endif