@extends('layouts.admin') @section('title') @if (request()->routeIs('admin.withdraw.pending')) @lang('Pending Withdraws') @elseif (request()->routeIs('admin.withdraw.successful')) @lang('Successful Withdraws') @elseif(request()->routeIs('admin.withdraw.failed')) @lang('Failed Withdraws') @else All Withdraws @endif @endsection @section('breadcrumb')
@if (request()->routeIs('admin.withdraw.pending'))

@lang('Pending Withdraws')

@elseif (request()->routeIs('admin.withdraw.successful'))

@lang('Successful Withdraws')

@else

@lang('Failed Withdraws')

@endif
@endsection @section('content')
@forelse ($withdrawlogs as $key => $withdrawlog) @empty @endforelse
@lang('Sl') @lang('User') Description @lang('Withdraw Amount') @lang('Charge') @lang('status') @lang('Status Message') @lang('Action')
{{$key + $withdrawlogs->firstItem()}} @if($withdrawlog->user) {{$withdrawlog->user->email.'(user)'}} @elseif($withdrawlog->merchant) {{$withdrawlog->merchant->email.'(merchant)'}} @elseif(@$withdrawlog->agent) {{@$withdrawlog->agent->email.'(agent)'}} @endif {{$withdrawlog->descriptions}} {{toMoney($withdrawlog->amount) }} {{amount($withdrawlog->charge,$withdrawlog->currency->type,2)}} @if($withdrawlog->status == 1) Successful @elseif($withdrawlog->status == 2) Failed @elseif($withdrawlog->status == 3) Refund @else Pending @endif {{$withdrawlog->flw_complete_message}}
@if($withdrawlog->status == 2) @endif @if($withdrawlog->status == 0) @endif
@lang('No Data Found')
@if ($withdrawlogs->hasPages()) @endif
@endsection @push('style') @endpush @push('script') @endpush