plugin_path . 'includes/models/methods-api.php'; $method = new Methods(); include $controller->plugin_path . 'includes/translations/translations.php'; $txt = new Translation; $start_date = sanitize_text_field($_POST['param1']); $end_date = sanitize_text_field($_POST['param2']); $start_timestamp = strtotime($start_date); $end_timestamp = strtotime($end_date); ?>
prefix . 'hotel_has_payment'; $query_result = $wpdb->get_results("SELECT * FROM `$table` WHERE `timestamp` >= $start_timestamp AND `timestamp` <= $end_timestamp", ARRAY_A); foreach ($query_result as $row): ?>
txt("Date") ?> txt("Amount") ?> txt("Details") ?>
has_currency($row['amount']); $total_amount += $row['amount']; ?>

txt('Total') . ' ' . $method->has_currency($total_amount); ?>