@extends('layouts.admin') @section('title') @if (request()->routeIs('admin.withdraw.pending')) @lang('Pending Withdraws') @elseif (request()->routeIs('admin.withdraw.accepted')) @lang('Accepted Withdraws') @else @lang('Rejected Withdraws') @endif @endsection @section('breadcrumb')
@if (request()->routeIs('admin.withdraw.pending'))

@lang('Pending Withdraws')

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

@lang('Accepted Withdraws')

@else

@lang('Rejected Withdraws')

@endif
@endsection @section('content')
@forelse ($withdrawlogs as $key => $withdrawlog) @empty @endforelse
@lang('Sl') @lang('User') @lang('Withdraw Amount') @lang('Charge') @lang('status') @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 {{ __(amount($withdrawlog->amount,$withdrawlog->currency->type,2).' '.$withdrawlog->currency->code) }} {{amount($withdrawlog->charge,$withdrawlog->currency->type,2)}} @if($withdrawlog->status == 1) @lang('Accepted') @elseif($withdrawlog->status == 2) @lang('Rejected') @else @lang('Pending') @endif
@if($withdrawlog->status == 0) @endif
@lang('No Data Found')
@if ($withdrawlogs->hasPages()) @endif
@endsection @push('script') @endpush