@php $fund = $fund ?? 'pf'; $indexRoute = route("{$fund}.withdrawals"); $showAmountFilter = $showAmountFilter ?? true; $showTypeColumn = $showTypeColumn ?? false; $statuses = ['pending', 'approved', 'rejected', 'paid']; @endphp @include('employee.fund.partials.emp_fund_styles', ['wrap' => 'adm-fund'])

{{ $title }}

@if(!empty($subtitle))

{{ $subtitle }}

@endif
@if(isset($withdrawalStats))
{{ number_format((int) ($withdrawalStats->total ?? 0)) }}
{{ __('Total') }}
{{ number_format((int) ($withdrawalStats->pending ?? 0)) }}
{{ __('Pending') }}
{{ number_format((int) ($withdrawalStats->approved ?? 0)) }}
{{ __('Approved') }}
{{ number_format((int) ($withdrawalStats->paid ?? 0)) }}
{{ __('Paid') }}
@endif
{{ __('Withdrawal requests') }} @if($hasFilters ?? false) {{ __('Clear filters') }} @endif
@if($showAmountFilter)
@endif
@if($showTypeColumn) @endif @forelse($rows as $row) @if($showTypeColumn) @endif @empty @endforelse
{{ __('Employee') }}{{ __('Type') }}{{ __('Status') }} {{ __('Amount') }} {{ __('Requested') }} {{ __('Paid') }} {{ __('Action') }}
@include('admin.fund.partials.staff_cell', [ 'name' => $row->account?->staff?->user?->name, 'code' => $row->account?->staff?->user?->id, ]) @if(($row->kind ?? 'withdrawal') === 'settlement') {{ __('Settlement') }} @else {{ __('Withdrawal') }} @endif @include('admin.fund.partials.fund_status_badge', ['status' => $row->status]) {{ number_format((float) $row->amount, 2) }} {{ $row->requested_at?->format('Y-m-d') ?? '—' }} {{ $row->paid_at?->format('Y-m-d') ?? '—' }}
@if($row->status === 'pending')
id) }}" class="d-inline"> @csrf
id) }}" class="d-inline"> @csrf
@elseif($row->status === 'approved')
id) }}" class="d-inline"> @csrf
@else {{ __('No actions') }} @endif
{{ ($hasFilters ?? false) ? __('No withdrawals match your filters.') : __('No withdrawal requests yet.') }}
@if($rows->hasPages()) @endif