@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 client payouts

@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

    Clients' payouts

    @if(\Session::has('delete'))
  • {!! \Session::get('delete') !!}
  • @endif
    @isset($all_withdrawal_requests) @foreach($all_withdrawal_requests as $client) @endforeach @endisset
    S.No. User Staff No. ID No. Type Amount (USD) Preferred Payment method Actions
    {{$loop->iteration}} {{optional($client->users)->name}} {{optional($client->users)->surname}} {{optional($client->staff_details)->staff_number}} {{optional($client->staff_details)->id_number}} @if($client->type == 'monthly_payout') @php $with_type = "Monthly Payout"; @endphp @elseif($client->type == 'withdrawal') @php $with_type = "Withdrawal"; @endphp @endif {{$with_type}} {{$client->amount}} @isset(optional($client->preferred_payment_method)->preferred) {{ optional($client->preferred_payment_method)->preferred }} @else

    Not Set Up

    @endisset
    @isset($client->preferred_payment_method) @else @endisset
    @endsection @section('custom-scripts') @endsection