@extends('admin.layout') @section('custom-style') @endsection @section('content') @php $date = (isset($_GET['date'])) ? $_GET['date'] : ''; @endphp @php $searchText = (isset($_GET['searchText'])) ? $_GET['searchText'] : ''; @endphp

Manage Withdrawal Requests

@if ($errors->any())
@foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
    @endif @if(\Session::has('error'))
  • {!! \Session::get('error') !!}
  • @endif @if(\Session::has('warning'))
  • {!! \Session::get('warning') !!}
  • @endif @if(\Session::has('success'))
  • {!! \Session::get('success') !!}
  • @endif

    Withdrawal Requests

    @if(\Session::has('delete'))
  • {!! \Session::get('delete') !!}
  • @endif
    @isset($all_withdrawal_requests) @foreach($all_withdrawal_requests as $withdrawal_req) @endforeach @endisset
    S.No. User Type Amount (USD) Payment Method Status Date Actions
    {{$loop->iteration}} {{$withdrawal_req->users->name}} {{$withdrawal_req->users->surname}} @if($withdrawal_req->type == 'monthly_payout') @php $with_type = "Monthly Payout"; @endphp @elseif($withdrawal_req->type == 'withdrawal') @php $with_type = "Withdrawal"; @endphp @endif {{$with_type}} {{$withdrawal_req->amount}} {{$withdrawal_req->payment_method}} {{ucfirst($withdrawal_req->status)}} {{$withdrawal_req->date->format('d-M-Y')}}
    @endsection @section('custom-scripts') @endsection