@php
$payout_method = [
'paypal' => [
'id' => 'PayPal',
'title' => __('tutor.payPal_balance'),
'image' => 'images/paypal.svg',
'price' => $withdrawalsType['paypal']['total_amount'] ?? 0,
'status' => isset($payoutStatus['paypal'])?? [],
'remove_action' => isset($payoutStatus['paypal']) ? 'deletepopup' : 'setuppayoneerpopup',
'btnTitle' => isset($payoutStatus['paypal']) ? __('tutor.remove_account') :
__('tutor.add_account')
],
'payoneer' => [
'id' => 'payoneer',
'title' => __('tutor.payoneer_balance') ,
'image' => 'images/payoneer.svg',
'price' => $withdrawalsType['payoneer']['total_amount'] ?? 0,
'status' => isset($payoutStatus['payoneer'] ) ?? [],
'remove_action' => isset($payoutStatus['payoneer']) ? 'deletepopup' : 'setuppayoneerpopup',
'btnTitle' => isset($payoutStatus['payoneer']) ?__('tutor.remove_account') :
__('tutor.add_account')
],
'bank' => [
'id' => 'bank',
'title' => __('tutor.bank_transfer') ,
'image' => 'images/bank.svg',
'price' => $withdrawalsType['bank']['total_amount'] ?? 0,
'status' => isset($payoutStatus['bank']) ??[],
'remove_action' => isset($payoutStatus['bank']) ? 'deletepopup' : 'setupaccountpopup',
'btnTitle' => isset($payoutStatus['bank']) ?__('tutor.remove_account') : __('tutor.add_account')
],
];
@endphp
@foreach ($payout_method as $method => $item)
@if ($item['price'])
{!! formatAmount($item['price'], true) !!}
@endif
@if ($item['status'])
{{ $item['title'] }}
@endif
@if ($item['status'])
@else
{{ $item['title'] }}
@if(!$item['price'] > 0)
{{ __('tutor.no_account_added_yet') }}
@endif
@endif
@endforeach