@if(file_exists(public_path('img/logo.png'))) @else

RP LEARNING

@endif

Official Earnings Payslip

RP Learning Academy

Payroll Status: {{ strtoupper($calculation->calculation_status) }}

Teacher:
{{ $teacher->name ?? 'Unknown Teacher' }}
Payslip Number:
{{ $calculation->payment_reference ?? 'PAY-' . str_pad($calculation->id, 5, '0', STR_PAD_LEFT) }}
Payroll Period:
{{ $calculation->payrollPeriod->name ?? 'N/A' }}
Date Issued:
{{ \Carbon\Carbon::parse($calculation->updated_at)->format('M d, Y') }}
Payment Method:
{{ strtoupper(str_replace('_', ' ', $calculation->payment_method ?? 'Bank Transfer')) }}
Verified Sessions:
{{ $calculation->session_count }}
Description Amount (GHS)
Gross Earnings ({{ $calculation->session_count }} Sessions) {{ number_format($calculation->gross_amount, 2) }}
Administration Fee @if(isset($calculation->admin_fee_percentage) && $calculation->admin_fee_percentage > 0) ({{ $calculation->admin_fee_percentage }}%) @endif - {{ number_format($calculation->admin_fee_amount, 2) }}
Net Payable {{ number_format($calculation->net_amount, 2) }}

Scan QR Code To Verify Authenticity

{{-- Render the SVG string properly encoded for DomPDF --}} @if(isset($qrCodeSvg)) Verification QR Code @endif