@extends('admin.layouts.app') @section('title', get_setting('site_name').' | Staff Welfare Fund Account') @section('content')
{{ __('SWF Account') }} — {{ $staff->user?->name }} ({{ $staff->user?->id }})
{{ __('Statement') }} {{ __('Back') }}
@if((int)get_setting('swf') !== 1)
{{ __('SWF feature is OFF. You can view statements, but cannot modify settings/accounts until SWF is enabled.') }}
@endif
@csrf
@include('admin.partials.fund_account_opening_interest', [ 'featureOn' => (int) get_setting('swf') === 1, 'openingRoute' => route('swf.accounts.opening_balance', $staff->id), 'openingUpdateRoute' => route('swf.accounts.opening_balance.update', $staff->id), 'openingDestroyRoute' => route('swf.accounts.opening_balance.destroy', $staff->id), 'interestRoute' => route('swf.accounts.interest', $staff->id), 'interestUpdateRoute' => 'swf.accounts.interest.update', 'interestDestroyRoute' => 'swf.accounts.interest.destroy', ])
@endsection