@extends('admin.layouts.app') @section('title', get_setting('site_name').' | Staff Welfare Fund Settings') @section('content') @include('admin.fund.partials.settings_styles') @include('employee.fund.partials.emp_fund_styles', ['wrap' => 'adm-fund'])

{{ __('Staff Welfare Fund (SWF) Settings') }}

{{ __('Configure default rates, loan policy, and withdrawal rules.') }}

@if((int) get_setting('swf') !== 1) {{ __('SWF feature is OFF') }} @else {{ __('SWF feature is ON') }} @endif
{{ __('Configuration') }}
@csrf
{{ __('Optional. Admin can still set per-staff manual rates.') }}
{{ __('If set, staff cannot request/approve loans above this percentage of their SWF balance. Leave empty/0 for no limit.') }}
@include('admin.fund.partials.loan_policy_settings_fields')
{{ __('If set, staff cannot request/approve withdrawals above this percentage of their SWF balance. Leave empty/0 for no limit.') }}
@include('admin.fund.partials.withdrawal_policy_settings_fields') @include('admin.fund.partials.settings_toggle', [ 'name' => 'allow_manual_rate_override', 'label' => __('Allow manual rate override'), 'checked' => old('allow_manual_rate_override', $row->allow_manual_rate_override), 'help' => __('When enabled, admin can set custom SWF rates per staff on the account screen.'), ])
{{ __('Separation & settlement') }}
@include('admin.fund.partials.separated_until_settlement_settings', ['fund' => 'swf'])
@endsection