@extends('layouts.backend') @section('content')

{{ __('Provident Fund Report') }}

@if($canViewAllProvidentFund) {{ __('Export CSV') }} @endif
@include('partials.flash')
{{ __('Employee Contribution:') }} {{ number_format((float) $summary['employee_contribution'], 2) }}
{{ __('Employer Contribution:') }} {{ number_format((float) $summary['employer_contribution'], 2) }}
{{ __('Withdrawals:') }} {{ number_format((float) $summary['withdrawal'], 2) }}
{{ __('Adjustments:') }} {{ number_format((float) $summary['adjustment'], 2) }}
@if($canViewAllProvidentFund)
@else
@endif
{{ __('Reset') }}
@forelse($transactions as $transaction) @empty @endforelse
{{ __('Date') }}{{ __('Employee') }}{{ __('Department') }}{{ __('Type') }}{{ __('Employee PF') }}{{ __('Employer PF') }}{{ __('Withdrawal') }}{{ __('Adjustment') }}{{ __('Balance After') }}{{ __('Reference') }}
{{ $transaction->transaction_date }} {{ trim(($transaction->employee?->first_name ?? '').' '.($transaction->employee?->last_name ?? '')) }} ({{ $transaction->employee?->employee_code }}) {{ $transaction->employee?->department?->name ?? '-' }} {{ __(ucfirst($transaction->transaction_type)) }} {{ number_format((float) $transaction->employee_contribution, 2) }} {{ number_format((float) $transaction->employer_contribution, 2) }} {{ number_format((float) $transaction->withdrawal_amount, 2) }} {{ number_format((float) $transaction->adjustment_amount, 2) }} {{ $transaction->balance_after !== null ? number_format((float) $transaction->balance_after, 2) : '-' }} {{ $transaction->reference_no ?: '-' }}
{{ __('No provident fund records found.') }}
{{ $transactions->links('pagination::bootstrap-5') }}
@endsection