@extends('admin.layouts.app') @section('panel')
@if(request()->routeIs('admin.withdraw.log') || request()->routeIs('admin.withdraw.method') || request()->routeIs('admin.users.withdrawals') || request()->routeIs('admin.users.withdrawals.method'))

{{ __($general->cur_sym) }}{{ $withdrawals->where('status',1)->sum('amount') }}

@lang('Approved Withdrawals')

{{ __($general->cur_sym) }}{{ $withdrawals->where('status',2)->sum('amount') }}

@lang('Pending Withdrawals')

{{ __($general->cur_sym) }}{{ $withdrawals->where('status',3)->sum('amount') }}

@lang('Rejected Withdrawals')

@endif
@forelse($withdrawals as $withdraw) @php $details = ($withdraw->withdraw_information != null) ? json_encode($withdraw->withdraw_information) : null; $method = $withdraw->method_id == 0 ? "" : $withdraw->method; @endphp @empty @endforelse
@lang('Gateway | Trx') @lang('Initiated') @lang('User | Project Owner') @lang('Amount') @lang('Conversion') @lang('Status') @lang('Action')
@if($method != "") {{ __(@$withdraw->method->name) }}
{{ $withdraw->trx }} @else {{ $withdraw->trx }} @endif
{{ showDateTime($withdraw->created_at) }}
{{ diffForHumans($withdraw->created_at) }}
@if($method != "") {{ $withdraw->merchant->fullname }}
@{{ $withdraw->merchant->username }} @else {{ $withdraw->user->fullname }}
@{{ $withdraw->user->username }} @endif
@if($method != "") {{ __($general->cur_sym) }}{{ showAmount($withdraw->amount ) }} - {{ showAmount($withdraw->charge)}}
{{ showAmount($withdraw->amount-$withdraw->charge) }} {{ __($general->cur_text) }} @else {{ showAmount($withdraw->amount-$withdraw->charge) }} {{ $withdraw->currency }} @endif
@if($method != "") 1 {{ __($general->cur_text) }} = {{ showAmount($withdraw->rate) }} {{ __($withdraw->currency) }}
{{ showAmount($withdraw->final_amount) }} {{ __($withdraw->currency) }} @else - @endif
@if($withdraw->status == 2) @lang('Pending') @elseif($withdraw->status == 1) @lang('Approved')
{{ diffForHumans($withdraw->updated_at) }} @elseif($withdraw->status == 3) @lang('Rejected')
{{ diffForHumans($withdraw->updated_at) }} @endif
{{ __($emptyMessage) }}
@endsection @push('breadcrumb-plugins') @if(!request()->routeIs('admin.users.withdrawals') && !request()->routeIs('admin.users.withdrawals.method'))
@endif @endpush @push('script-lib') @endpush @push('script') @endpush