{{-- ============ 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
| Month |
Base Salary |
PF |
Net Paid |
Method |
Remarks |
@forelse($salaryHistory as $row)
@php
$pf = ($row->salary_amount ?? 0) - ($row->payment_amount ?? 0);
@endphp
| {{ \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 ?? '-' }} |
@empty
| No salary records. |
@endforelse
{{-- ============ PF Contributions ============ --}}
| Date |
Amount |
Reference |
Note |
@php $deposits = $pfTransactions->where('type','contribution'); @endphp
@forelse($deposits as $txn)
| {{ \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 ?? '-' }} |
@empty
| No PF contributions. |
@endforelse
{{-- ============ PF Withdrawals ============ --}}
| Date |
Amount |
Status/Ref |
Note |
@php $withdraws = $pfTransactions->where('type','WITHDRAWAL'); @endphp
@forelse($withdraws as $txn)
| {{ \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 ?? '-' }} |
@empty
| No PF withdrawals. |
@endforelse