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

{{ __('Payslip History') }}

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

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

{{ ucfirst($payslip['status'] ?? 'draft') }}

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

{{ __('Download PDF') }}

{{ __('Gross') }}

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

{{ __('Admin Fee') }}

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

{{ __('Net') }}

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

@if(isset($payslip['sessions_count']))
📅 {{ $payslip['sessions_count'] }} {{ __('sessions') }} @if(isset($payslip['admin_fee_percentage'])) 📊 {{ $payslip['admin_fee_percentage'] }}% {{ __('admin fee') }} @endif
@endif
@empty @endforelse
{{-- QR Verification Card --}}
📱

QR

{{ __('Verify Payslip') }}

{{ __('Scan to verify authenticity. Share this link with external parties for payroll verification.') }}

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

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

{{ __('Immutable') }}

{{ __('All payroll records are cryptographically sealed and cannot be modified. This audit trail ensures payment integrity.') }}

📋 Records are append-only and timestamped

🔐 Each payslip contains a SHA-256 verification hash

✅ Payments are verified against Paystack transaction IDs

🚫 No payroll record can be edited or deleted after processing