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

Withdraw History

@php $paid = $cancel = $pending = $withdraw_amount = 0; foreach($withdraw_status as $withdraw){ if($withdraw->status != 'cancel'){ $withdraw_amount += $withdraw->amount; } if($withdraw->status == 'pending'){ $pending +=1 ; } if($withdraw->status == 'paid'){ $paid +=1 ; } if($withdraw->status == 'cancel'){ $cancel +=1 ; } } $all = $pending+$paid+$cancel; @endphp
Total Request
Pending Request
@if(count($allwithdraws)>0) @foreach($allwithdraws as $withdraw) @endforeach @else @endif
Date Seller Payment Method Amount Details Status Action
{{\Carbon\Carbon::parse($withdraw->created_at)->format(Config::get('siteSetting.date_format'))}} ({{\Carbon\Carbon::parse($withdraw->created_at)->diffForHumans()}}) {{$withdraw->seller->shop_name.' ('.$withdraw->seller->shop_name.')'}} @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->amount }} {{$withdraw->notes }} @if($withdraw->status == 'paid') {{$withdraw->status}} @elseif($withdraw->status == 'cancel') {{$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