@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phpmyadmin-ubuntu-m-2vcpu-16gb-blr1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Current Path :
/
var
/
www
/
html
/
wp-content
/
themes
/
wpresidence
/
Path :
Upload File :
New :
File
Dir
/var/www/html/wp-content/themes/wpresidence/user_dashboard_invoices.php
<?php // Template Name: User Dashboard Invoices // Wp Estate Pack wpestate_dashboard_header_permissions(); $current_user = wp_get_current_user(); $paid_submission_status = esc_html ( wpresidence_get_option('wp_estate_paid_submission','') ); $price_submission = floatval( wpresidence_get_option('wp_estate_price_submission','') ); $submission_curency_status = esc_html( wpresidence_get_option('wp_estate_submission_curency','') ); $userID = $current_user->ID; $user_option = 'favorites'.$userID; $curent_fav = get_option($user_option); $show_remove_fav = 1; $show_compare = 1; $show_compare_only = 'no'; $wpestate_currency = esc_html( wpresidence_get_option('wp_estate_currency_symbol', '') ); $where_currency = esc_html( wpresidence_get_option('wp_estate_where_currency_symbol', '') ); $wpestate_options = wpestate_page_details($post->ID); get_header(); ?> <div class="row row_user_dashboard"> <?php get_template_part('templates/dashboard-left-col'); ?> <div class="col-md-9 dashboard-margin"> <?php get_template_part('templates/breadcrumbs'); ?> <?php get_template_part('templates/user_memebership_profile'); ?> <?php get_template_part('templates/ajax_container'); ?> <?php if (esc_html( get_post_meta($post->ID, 'page_show_title', true) ) != 'no') { ?> <h3 class="entry-title"><?php the_title(); ?></h3> <?php } ?> <div class="col-md-12 row_dasboard-prop-listing"> <?php $args = array( 'post_type' => 'wpestate_invoice', 'post_status' => 'publish', 'posts_per_page' => -1 , 'author' => $userID, ); $prop_selection = new WP_Query($args); $counter = 0; $wpestate_options['related_no'] = 4; $total_confirmed = 0; $total_issued = 0; $templates = '<div class="no_invoices">'.esc_html__('No invoices','wpresidence').'</div>'; if( $prop_selection->have_posts() ){ ob_start(); while ($prop_selection->have_posts()): $prop_selection->the_post(); include( locate_template('templates/invoice_listing_unit.php') ); $status = esc_html(get_post_meta($post->ID, 'invoice_status', true)); $type = esc_html(get_post_meta($post->ID, 'invoice_type', true)); $price = esc_html(get_post_meta($post->ID, 'item_price', true)); $total_issued='-'; $total_confirmed = $total_confirmed + $price; endwhile; $templates = ob_get_contents(); ob_end_clean(); } print '<div class="col-md-12 invoice_filters"> <div class="col-md-2"> <input type="text" id="invoice_start_date" class="form-control" name="invoice_start_date" placeholder="'.esc_html__('from date','wpresidence').'"> </div> <div class="col-md-2"> <input type="text" id="invoice_end_date" class="form-control" name="invoice_end_date" placeholder="'.esc_html__('to date','wpresidence').'"> </div> <div class="col-md-2"> <select id="invoice_type" name="invoice_type" class="form-control select-submit2"> <option value="">'.esc_html__('Any','wpresidence').'</option> <option value="Upgrade to Featured">'.esc_html__('Upgrade to Featured','wpresidence').'</option> <option value="Publish Listing with Featured">'.esc_html__('Publish Listing with Featured','wpresidence').'</option> <option value="Package">'.esc_html__('Package','wpresidence').'</option> <option value="Listing">'.esc_html__('Listing','wpresidence').'</option> </select> </div> <div class="col-md-2"> <select id="invoice_status" name="invoice_status" class="form-control"> <option value="">'.esc_html__('Any','wpresidence').'</option> <option value="1">'.esc_html__('Paid','wpresidence').'</option> <option value="0">'.esc_html__('Not Paid','wpresidence').'</option> </select> </div> </div> <div class="col-md-12 invoice_totals"> <strong>'.esc_html__('Total Invoices: ','wpresidence').'</strong><span id="invoice_confirmed">'.wpestate_show_price_custom_invoice($total_confirmed).'</span> </div> '; print '<div class="col-md-12 invoice_unit_title"> <div class="col-md-2"> <strong> '.esc_html__('Title','wpresidence').'</strong> </div> <div class="col-md-2"> <strong> '.esc_html__('Date','wpresidence').'</strong> </div> <div class="col-md-2"> <strong> '.esc_html__('Invoice Type','wpresidence').'</strong> </div> <div class="col-md-2"> <strong> '.esc_html__('Billing Type','wpresidence').'</strong> </div> <div class="col-md-2"> <strong> '.esc_html__('Status','wpresidence').'</strong> </div> <div class="col-md-2"> <strong> '.esc_html__('Price','wpresidence').'</strong> </div> </div> '; print '<div id="container-invoices">'; print trim($templates); print '</div>'; ?> </div> </div> </div> <?php $ajax_nonce = wp_create_nonce( "wpestate_invoices_actions" ); print ' <input type="hidden" id="wpestate_invoices_actions" value="'.esc_html($ajax_nonce).'" />'; get_footer(); ?>