@extends('layouts.master') @section('title', 'Withdrawals Dashboard') @section('breadcrumb-text')

{{__('Withdrawals Dashboard')}}

@can('withdrawal-view') {!! renderIconHtml('pending') !!}{{__('Pending')}} {!! renderIconHtml('approve') !!}{{__('Approved')}} {!! renderIconHtml('reject') !!}{{__('Rejected')}} {!! renderIconHtml('download') !!}{{__('Downloaded CSV')}} @endcan
@endsection @section('content')
{{__('In This Month')}}

{{__('Pending')}}

€ {{ formatDisplayNumber((($withdrawalCurrentMonth[0] ?? 0) + ($withdrawalCurrentMonth[4] ?? 0))) }}

{!! renderIconHtml('viewall') !!}{{__('View All')}}

{{__('In Process')}}

€ {{ formatDisplayNumber($withdrawalCurrentMonth[3] ?? 0) }}

{!! renderIconHtml('viewall') !!}{{__('View All')}}

{{__('Approved')}}

€ {{ formatDisplayNumber($withdrawalCurrentMonth[1] ?? 0) }}

{!! renderIconHtml('viewall') !!}{{__('View All')}}

{{__('Rejected')}}

€ {{ formatDisplayNumber($withdrawalCurrentMonth[2] ?? 0) }}

{!! renderIconHtml('viewall') !!}{{__('View All')}}
{{__('In Process')}}
{{__('No. of withdrawals ') }}{{ $totalWithdrawalByStatus[3]['total_record'] ?? 0 }}

€ {{ formatDisplayNumber($totalWithdrawalByStatus[3]['total_amount'] ?? 0) }}

{{ formatDisplayNumber($percentage) }}%
{{__('Pending')}}
{{__('No. of withdrawals ') }}{{ (($totalWithdrawalByStatus[0]['total_record'] ?? 0) + ($totalWithdrawalByStatus[4]['total_record'] ?? 0)) }}

€ {{ formatDisplayNumber($pending) }}

{{ formatDisplayNumber($percentage) }}%
{{__('Approved')}}
{{__('No. of withdrawals ') }}{{ $totalWithdrawalByStatus[1]['total_record'] ?? 0 }}

€ {{ formatDisplayNumber($totalWithdrawalByStatus[1]['total_amount'] ?? 0) }}

{{ formatDisplayNumber($percentage) }}%
{{__('Rejected')}}
{{__('No. of withdrawals ') }}{{ $totalWithdrawalByStatus[2]['total_record'] ?? 0 }}

€ {{ formatDisplayNumber($totalWithdrawalByStatus[2]['total_amount'] ?? 0) }}

{{ formatDisplayNumber($percentage) }}%
{{__('Currency Wise Withdrawal Request')}}
@foreach ($totalWithdrawalByCurrency as $withdrawalKey => $withdrawal) @php // Calculate percentage for the current status $percentage = $totalWithdrawalAmount > 0 ? ($withdrawal->total_amount / $totalWithdrawalAmount) * 100 : 0; @endphp

{{$withdrawal->abbreviation}}

€ {{formatDisplayNumber($withdrawal->total_amount)}}
{{__('Total request')}} {{$withdrawal->total_record}} {{formatDisplayNumber($percentage)}} %
@endforeach
{{__('Downloaded Withdrawal CSV')}}

{{__('Total:')}} {{ $totalWithdrawalCSV }}

{{__('Downloaded CSV')}}

{{__('Total:')}} {{ $withdrawalLogUploadedCSV }}

{{__('Pending Upload Log')}}
{!! renderIconHtml('viewall') !!}{{__('View List')}}
{{__('Date Wise Pending Log Withdrawal Request')}}
{{ __('#') }} {{ __('Due Date') }} {{ __('Total Amount') }}
@endsection @push('scripts') @endpush