@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('GF Accounts')) @section('content') @include('employee.fund.partials.emp_fund_styles', ['wrap' => 'adm-fund'])

{{ __('GF Accounts') }}

{{ __('Manage employee gratuity fund enrollment and accrual rates.') }}

{{ __('GF Settings') }}
{{ __('Employee accounts') }} @if($hasFilters ?? false) {{ __('Clear filters') }} @endif
@unless(\App\Support\BranchWiseFeature::appliesToUser())
@endunless
@forelse($rows as $staff) @php $acc = $staff->gfAccount; $isEnrolled = $acc && $acc->is_enrolled && $acc->status === 'active'; $eligibility = app(\App\Services\FundStaffEligibilityService::class); $sepLabel = $eligibility->separationStatusLabel($staff); $sepKind = $eligibility->separationStatusKind($staff); @endphp @empty @endforelse
{{ __('Employee') }} {{ __('Branch') }} {{ __('Department') }} {{ __('Enrolled') }} {{ __('Monthly %') }} {{ __('Status') }} {{ __('Action') }}
@include('admin.fund.partials.staff_cell', [ 'name' => $staff->user?->name, 'code' => $staff->user?->id, 'sepLabel' => $sepLabel, 'sepKind' => $sepKind, ]) {{ $staff->warehouse?->name ?? '—' }} {{ $staff->department?->name ?? '—' }} {{ $isEnrolled ? __('Yes') : __('No') }} {{ $acc?->monthly_accrual_percent_of_basic ?? '—' }} @include('admin.fund.partials.fund_status_badge', ['status' => $acc?->status ?? '—'])
{{ ($hasFilters ?? false) ? __('No accounts match your filters.') : __('No employee accounts found.') }}
@if($rows->hasPages()) @endif
@endsection