{{-- Compact, tab-based PF & Salary report (no extra tables/assumptions) --}}
Provident Fund & Salary Report Export PDF
{{-- Sub Tabs --}}
{{-- ============ Salary Payment ============ --}}
{{-- PF mini summary (top-right, small, current schema only) --}}
Provident Fund Summary
@if($fundAccount)
Current Balance {{ number_format($fundAccount->current_balance) }}
Locked Balance {{ number_format($fundAccount->locked_balance) }}
Withdrawable {{ number_format($fundAccount->current_balance - $fundAccount->locked_balance) }}
Last Updated: {{ $fundAccount->updated_at?->format('d M Y, h:i A') }}
@else
No PF account found.
@endif
@forelse($salaryHistory as $row) @php $pf = ($row->salary_amount ?? 0) - ($row->payment_amount ?? 0); @endphp @empty @endforelse
Month Base Salary PF Net Paid Method Remarks
{{ \Carbon\Carbon::parse($row->month)->format('F Y') }} {{ number_format($row->salary_amount) }} {{ number_format($pf) }} {{ number_format($row->payment_amount) }} {{ $row->paymentMethod->name ?? '-' }} {{ $row->remarks ?? '-' }}
No salary records.
{{-- ============ PF Contributions ============ --}}
@php $deposits = $pfTransactions->where('type','contribution'); @endphp @forelse($deposits as $txn) @empty @endforelse
Date Amount Reference Note
{{ \Carbon\Carbon::parse($txn->performed_at)->format('d M Y') }} {{ number_format($txn->amount) }} @if($txn->ref_table === 'employee_salaries') Salary ({{ $txn->ref_id }}) @else {{ $txn->ref_table ?? '-' }} @endif {{ $txn->note ?? '-' }}
No PF contributions.
{{-- ============ PF Withdrawals ============ --}}
@php $withdraws = $pfTransactions->where('type','WITHDRAWAL'); @endphp @forelse($withdraws as $txn) @empty @endforelse
Date Amount Status/Ref Note
{{ \Carbon\Carbon::parse($txn->performed_at)->format('d M Y') }} {{ number_format($txn->amount) }} {{ $txn->ref_table ? ucfirst($txn->ref_table) : '-' }} @if(!empty($txn->ref_id)) (#{{ $txn->ref_id }}) @endif {{ $txn->note ?? '-' }}
No PF withdrawals.
{{-- Responsive tune --}}