{{-- ═══════════════════════════════════════════════════════════ --}} {{-- HERO: Earnings Summary --}} {{-- ═══════════════════════════════════════════════════════════ --}}

{{ __('Teacher Payroll Dashboard') }}

{{ __('My Earnings') }}

{{ __('View payslips, current period preview, and payroll audit trail') }}

GHS {{ number_format($kpi['total_gross'] ?? 0, 2) }}

{{ __('Total Gross') }}

GHS {{ number_format($kpi['total_net'] ?? 0, 2) }}

{{ __('Total Net') }}

{{ $kpi['sessions_count'] ?? 0 }}

{{ __('Sessions') }}

{{ $kpi['payslip_count'] ?? 0 }}

{{ __('Payslips') }}

{{-- ═══════════════════════════════════════════════════════════ --}} {{-- CURRENT PERIOD PREVIEW --}} {{-- ═══════════════════════════════════════════════════════════ --}}

{{ __('Current Period Preview') }}

{{ __('In Progress') }}

{{ __('Estimated Gross') }}

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

{{ __('Admin Fee') }}

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

{{ __('Estimated Net') }}

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

{{-- ═══════════════════════════════════════════════════════════ --}} {{-- PAYSLIP HISTORY --}} {{-- ═══════════════════════════════════════════════════════════ --}}

{{ __('Payslip History') }}

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

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

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

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

{{ __('Net Pay') }}

{{ ucfirst($payslip['status'] ?? 'draft') }} 📄 {{ __('Download') }}
@empty

💰

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

{{ __('Your payslip history will appear here once payroll is processed.') }}

@endforelse
{{-- ═══════════════════════════════════════════════════════════ --}} {{-- 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

@push('scripts') @endpush