@extends('layouts.admin-master') @section('title', 'Withdraw Request') @section('css') @endsection @section('content')

Withdraw Request

@php $paid = $cancel = $pending = $accepted = 0; foreach($withdraw_status as $withdraw){ if($withdraw->status == 'pending'){ $pending +=1 ; } if($withdraw->status == 'accepted'){ $accepted +=1 ; } if($withdraw->status == 'paid'){ $paid +=1 ; } if($withdraw->status == 'cancel'){ $cancel +=1 ; } } $all = $pending+$paid+$cancel; @endphp
Pending
@if(count($allwithdraws)>0) @foreach($allwithdraws as $index => $withdraw) @endforeach @else @endif
# Customer Amount Commission Payment Info Notes Added By Status Action
{{(($allwithdraws->perPage() * $allwithdraws->currentPage() - $allwithdraws->perPage()) + ($index+1) )}} @if($withdraw->customer){{$withdraw->customer->name }}
@endif {{\Carbon\Carbon::parse($withdraw->created_at)->format(Config::get('siteSetting.date_format'))}} ({{\Carbon\Carbon::parse($withdraw->created_at)->diffForHumans()}})
{{Config::get('siteSetting.currency_symble'). str_replace('+', '', $withdraw->amount) }} {{ Config::get('siteSetting.currency_symble'). $withdraw->commission }} @if($withdraw->paymentGateway){{$withdraw->paymentGateway->method_name}}
@else {{$withdraw->payment_method}}
@endif @if($withdraw->account_no) Account no : {{$withdraw->account_no}}
@endif @if($withdraw->transaction_details) {{$withdraw->transaction_details}} @endif
{{ $withdraw->notes }} {{ ($withdraw->addedBy) ? $withdraw->addedBy->name : 'customer' }} @if($withdraw->status == 'paid') {{$withdraw->status}} @elseif($withdraw->status == 'cancel') {{$withdraw->status}} @elseif($withdraw->status == 'received') {{$withdraw->status}} @else {{$withdraw->status}} @endif

No withdraw found.

{{$allwithdraws->appends(request()->query())->links()}}
Showing {{ $allwithdraws->firstItem() }} to {{ $allwithdraws->lastItem() }} of total {{$allwithdraws->total()}} entries ({{$allwithdraws->lastPage()}} Pages)
@endsection @section('js') @endsection