{{-- Full-bleed status strip at the very top --}} @if($run->status === 'paid')
Payment Status
✓  Paid in Full
@else
Payment Status
Payment Pending
@endif
{{-- Header --}}
@if($logoBase64) {{ $academy->name }} @else
{{ $academy->name }}
@endif @if($academy->address)
{{ $academy->address }}
@endif
Payslip
{{ $periodLabel }}
Generated: {{ now()->format('d M Y') }}
{{-- Parties --}}
From
{{ $academy->name }}
@if($academy->address){{ $academy->address }}
@endif @if($academy->phone){{ $academy->phone }}@endif @if($academy->phone && $academy->email) · @endif @if($academy->email){{ $academy->email }}@endif
Paid To
{{ $user->name }}
{{ $user->role === 'teacher' ? 'Teacher' : ($user->role_name ?? 'Staff') }}
@if($user->email){{ $user->email }}@endif
{{-- Salary table --}} @foreach($allowances as $item) @endforeach @foreach($deductions as $item) @endforeach @if($run->gross_allowances > 0) @endif @if($run->gross_deductions > 0) @endif
Description Amount
Basic Salary Rs. {{ number_format($run->basic_salary, 2) }}
{{ $item->name }} ({{ $item->calc_type === 'percentage' ? $item->value.'%' : 'fixed' }}) + Rs. {{ number_format($item->computed_amount, 2) }}
{{ $item->name }} ({{ $item->calc_type === 'percentage' ? $item->value.'%' : 'fixed' }}) − Rs. {{ number_format($item->computed_amount, 2) }}
Gross Allowances + Rs. {{ number_format($run->gross_allowances, 2) }}
Gross Deductions − Rs. {{ number_format($run->gross_deductions, 2) }}
{{-- Total — color matches status --}}
Net Pay Rs. {{ number_format($run->net_pay, 2) }}
{{-- Footer --}}