" . $available_for_withdraw_formatted . '' ) );
} else {
/* translators: %s: available balance */
echo wp_kses_post( sprintf( __( 'You have %s and this is insufficient balance to withdraw', 'tutor' ), "" . $available_for_withdraw_formatted . '' ) );
}
?>
total_pending > 0 ) : ?>
tutor_price( $summary_data->total_pending ) ) );
?>
get_svg_icon( 'infoCircle' );//phpcs:ignore ?>
get_tutor_dashboard_page_permalink( 'settings/withdraw-settings' );
/* translators: %s: Withdraw Method Name */
echo esc_html( $withdraw_method_name ? sprintf( __( 'The preferred payment method is selected as %s. ', 'tutor' ), $withdraw_method_name ) : '' );
echo wp_kses(
/* translators: %1$s: a tag start, %2$s: a tag end */
sprintf( __( 'You can change your %1$s Withdraw Preference %2$s', 'tutor' ), "", '' ),
array(
'a' => array( 'href' => true ),
)
);
?>
results ) && count( $all_histories->results ) ) {
?>
|
|
|
|
|
results as $withdraw_history ) : ?>
method_data );
$method_key = $method_data['withdraw_method_key'];
$method_title = '';
switch ( $method_key ) {
case 'bank_transfer_withdraw':
$method_title = $method_data['account_number']['value'];
$method_title = substr_replace( $method_title, '****', 2, strlen( $method_title ) - 4 );
break;
case 'paypal_withdraw':
$method_title = $method_data['paypal_email']['value'];
$email_base = substr( $method_title, 0, strpos( $method_title, '@' ) );
$method_title = substr_replace( $email_base, '****', 2, strlen( $email_base ) - 3 ) . substr( $method_title, strpos( $method_title, '@' ) );
break;
}
?>
avalue_dot( 'withdraw_method_name', $method_data ) ); ?>
|
created_at ) ) ); ?>
|
tutor_price( $withdraw_history->amount ) ); ?>
|
status ), 'tutor' ); //phpcs:ignore ?>
|
status && isset( $status_message[ $withdraw_history->status ] ) ) : ?>
status ] ); ?>
|
tutor_empty_state( tutor_utils()->not_found_text() );
}
?>
count >= $per_page ) {
$pagination_data = array(
'total_items' => $all_histories->count,
'per_page' => $per_page,
'paged' => $current_page,
);
tutor_load_template_from_custom_path(
tutor()->path . 'templates/dashboard/elements/pagination.php',
$pagination_data
);
}
//phpcs:enable WordPress.WP.I18n.MissingTranslatorsComment
?>