@include('admin.layouts.header') @include('admin.layouts.sidebar')

Disbursements

@if(Session::has('success')) @endif @if(Session::has('error')) @endif @if(\Illuminate\Support\Facades\Session::has('Paytm_Payout|-27') && _env('payout') == 'paytm'))
@if(isset($wallets) && count($wallets) > 0)
@foreach($wallets as $wallet) @if(isset($wallet['walletBalance']) && $wallet['walletBalance'] > 0)
@if(isset($walletConfiguration->subWalletGuid) && $wallet['subWalletGuid'] == $walletConfiguration->subWalletGuid) @else @endif
{!! $wallet['walletName'] or '-' !!}
{!! $wallet['walletType'] or '-' !!}
₹ {!! $wallet['walletBalance'] or '-' !!}
Last Update - {!! $wallet['lastUpdatedDate'] or '-' !!}
@endif @endforeach
@endif
@endif

Disbursements

Clear Filter
@if(isset($offerIssues) && $offerIssues) @foreach($offerIssues as $offerIssue) @endforeach
ID Name Action
{!! $offerIssue['id'] !!} {!! $offerIssue['name'] !!}

(offer is not linked or offer deleted)

@endif @if(isset($data) && @count($data) > 0) @if($canDisbursed == 1) @endif @foreach($data as $merchant_id => $item) @foreach($item['applications'] as $key => $application) @if($canDisbursed == 1) @endif @endforeach @endforeach
Name Merchant Disburse Amount Action
@if(isset($jobsProcessingIds) && in_array($application->id, $jobsProcessingIds)) @endif CFPayoutDirectTransfer){ $payoutStatus = $application->CFPayoutDirectTransfer && $application->CFPayoutDirectTransfer->acknowledged != 1 ? $application->CFPayoutDirectTransfer : null; }else{ $payoutStatus = $application->payoutStatus && $application->payoutStatus->status == 'FAILURE' ? $application->payoutStatus : null; } ?> @if(request()->segment(3) === null) @if($payoutStatus && $isProcessingShow == 0) @endif @endif @if($application->lender_id == \App\Avanse\Services\AvanseServices::$lender_id) @elseif($application->lender_id == \App\ABFL\Services\Services::$lender_id) @elseif($application->lender_id == \App\LendBox::$lender_id || $application->lender_id == \App\LendBoxLSP::$lender_id) @elseif($application->lender_id == \App\KMGP2P::$lender_id) @endif @if($isProcessingShow) @endif
name)); ?>
@if($payoutStatus) @if($item['multiStage'][$application->id]) CFPayoutDirectTransfer){ $PayoutPreserve = \App\CFPayoutDirectTransfer::where('id', $application->CFPayoutDirectTransfer->id)->orderBy('created_at','desc')->where('phase',$item['details'][$application->id]['currentPhase'])->first(['message']); }else{ $PayoutPreserve = \App\PayoutPreserve::where('payout_status_id', $application->payoutStatus->id)->orderBy('created_at','desc')->first(['response']); } if(isset($PayoutPreserve->response)){ $PayoutPreserveMessage = json_decode($PayoutPreserve->response); echo isset($PayoutPreserveMessage->statusMessage) ? ''.trim($PayoutPreserveMessage->statusMessage).'' : ''; }else if(isset($PayoutPreserve->message)){ echo ''.trim($PayoutPreserve->message).''; } ?> @else CFPayoutDirectTransfer){ $PayoutPreserve = \App\CFPayoutDirectTransfer::where('id', $application->CFPayoutDirectTransfer->id)->orderBy('created_at','desc')->first(['message']); }else{ $PayoutPreserve = \App\PayoutPreserve::where('payout_status_id', $application->payoutStatus->id)->orderBy('created_at','desc')->first(['response']); } if(isset($PayoutPreserve->response)){ $PayoutPreserveMessage = json_decode($PayoutPreserve->response); echo isset($PayoutPreserveMessage->statusMessage) ? ''.trim($PayoutPreserveMessage->statusMessage).'' : ''; }else if(isset($PayoutPreserve->message)){ echo ''.trim($PayoutPreserve->message).''; } ?> @endif @endif
merchant->merchant_name)); ?> id]['withhold']) && $item['details'][$application->id]['withhold'] ? $item['details'][$application->id]['withhold'] : 0; ?>
{!! money_format('%!i',($item['details'][$application->id]['net_disbursement_before'] - $withhold)) !!}
@if($isProcessing == 0) id]['withhold'] || count($item['cancellation']) > 0 || (isset($item['previous_adjustable_amount']) && $item['previous_adjustable_amount'] > 0) || (isset($item['received']) && $item['received'] > 0)){ ?>
@if($application->payoutStatus && $application->payoutStatus->status == 'FAILURE') Adjust & Retry Payment @else Adjust Disburse @endif
@if($item['multiStage'][$application->id])
id]['withhold']) data-withheld="1" @endif data-app-id="{!! $application->id !!}" data-id="{!! $merchant_id !!}" data-is-bnpl="{!! $application->application_element->is_bnpl !!}" style="@if($application->payoutStatus && $application->payoutStatus->status == 'FAILURE') background-color: #d05858; @else background-color: #6dbdc1; @endif" data-app-list='{!! json_encode($item['exceptionList'][$application->id]) !!}'> @if($application->payoutStatus && $application->payoutStatus->status == 'FAILURE') Retry Payment @else Disburse @endif
@else
id]['withhold']) data-withheld="1" @endif data-app-id="{!! $application->id !!}" data-id="{!! $merchant_id !!}" data-is-bnpl="{!! $application->application_element->is_bnpl !!}" style="@if($application->payoutStatus && $application->payoutStatus->status == 'FAILURE') background-color: #d05858; @else background-color: #6dbdc1; @endif"> @if($application->payoutStatus && $application->payoutStatus->status == 'FAILURE') Retry Payment @else Disburse @endif
@endif @else Processing @endif
@else
No Data Found
@endif
@if(isset($applicationsFailed) && count($applicationsFailed))

Retry Failed Disbursements

@foreach($applicationsFailed as $failedApplication) @endforeach
Name Merchant Disburse Amount
{!! $failedApplication->name !!} {!! $failedApplication->merchant->merchant_name or '-' !!} {!! $failedApplication->name !!}
@endif
@include('admin.modal.email_reminders') @include("admin.layouts.footer")