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

{{__('Deposits Dashboard')}}

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

{{__('Pending')}}

€ {{ formatDisplayNumber($depositCurrentMonth[0] ?? 0) }}

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

{{__('Approved')}}

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

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

{{__('Rejected')}}

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

{!! renderIconHtml('viewall') !!}{{__('View All')}}
{{__('Total')}}
{{__('No. of deposits ') }}{{ $totalDepositRecords ?? 0 }}

€ {{ formatDisplayNumber($totalDepositAmount ?? 0) }}

100%
{{__('Pending')}}
{{__('No. of deposits ') }}{{ $totalDepositByStatus[0]['total_record'] ?? 0 }}

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

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

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

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

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

{{ formatDisplayNumber($percentage) }}%
{{__('Currency Wise Deposit Request')}}
@foreach ($totalDepositByCurrency as $depositKey => $deposit) @php // Calculate percentage for the current status $percentage = $totalDepositAmount > 0 ? ($deposit->total_amount / $totalDepositAmount) * 100 : 0; @endphp

{{$deposit->abbreviation}}

€ {{formatDisplayNumber($deposit->total_amount)}}
{{__('Total request')}} {{$deposit->total_record}} {{formatDisplayNumber($percentage)}} %
@endforeach
@endsection @push('scripts') @endpush