@extends('admin.layouts.app') @section('title', get_setting('site_name').' | Staff Welfare Fund Withdrawals') @section('content')
{{ __('SWF withdrawals') }}
@forelse($rows as $row) @empty @endforelse
{{ __('Employee') }} {{ __('Status') }} {{ __('Amount') }} {{ __('Requested') }} {{ __('Paid') }} {{ __('Action') }}
{{ $row->account?->staff?->user?->name }}
{{ $row->account?->staff?->user?->id }}
{{ $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')
@csrf
@csrf
@elseif($row->status === 'approved')
@csrf
@else {{ __('No actions') }} @endif
{{ __('No records') }}
{{ $rows->links() }}
@endsection