Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
* @link https://themeum.com * @version 1.4.3 */ use TUTOR\Input; use Tutor\Models\WithdrawModel; //phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $per_page = tutor_utils()->get_option( 'pagination_per_page', 20 ); $current_page = max( 1, Input::get( 'current_page', 1, Input::TYPE_INT ) ); $offset = ( $current_page - 1 ) * $per_page; $min_withdraw = tutor_utils()->get_option( 'min_withdraw_amount' ); $formatted_min_withdraw_amount = tutor_utils()->tutor_price( $min_withdraw ); $saved_account = WithdrawModel::get_user_withdraw_method(); $withdraw_method_name = tutor_utils()->avalue_dot( 'withdraw_method_name', $saved_account ); $user_id = get_current_user_id(); $withdraw_status = array( WithdrawModel::STATUS_PENDING, WithdrawModel::STATUS_APPROVED, WithdrawModel::STATUS_REJECTED ); $all_histories = WithdrawModel::get_withdrawals_history( $user_id, array( 'status' => $withdraw_status ), $offset, $per_page ); $image_base = tutor()->url . '/assets/images/'; $method_icons = array( 'bank_transfer_withdraw' => $image_base . 'icon-bank.svg', 'echeck_withdraw' => $image_base . 'icon-echeck.svg', 'paypal_withdraw' => $image_base . 'icon-paypal.svg', ); $status_message = array( 'rejected' => __( 'Please contact the site administrator for more information.', 'tutor' ), 'pending' => __( 'Withdrawal request is pending for approval, please hold tight.', 'tutor' ), ); $currency_symbol = ''; if ( function_exists( 'get_woocommerce_currency_symbol' ) ) { $currency_symbol = get_woocommerce_currency_symbol(); } elseif ( function_exists( 'edd_currency_symbol' ) ) { $currency_symbol = edd_currency_symbol(); } $summary_data = WithdrawModel::get_withdraw_summary( $user_id ); $available_for_withdraw = $summary_data->available_for_withdraw - $summary_data->total_pending; $is_balance_sufficient = $available_for_withdraw >= $min_withdraw; $available_for_withdraw_formatted = tutor_utils()->tutor_price( $available_for_withdraw ); $current_balance_formated = tutor_utils()->tutor_price( $summary_data->current_balance ); ?>
" . $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 ), ) ); ?>
nonce_action, tutor()->nonce ); ?>
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 ?>