# Websites: http://www.ijoomla.com
# Technical Support:  Forum - http://www.ijoomla.com.com/forum/index/
-------------------------------------------------------------------------*/
defined('_JEXEC') or die('Restricted access');
$doc = JFactory::getDocument();
$doc->addScript(JURI::root() . '/components/com_guru/js/sorttable.js');
$guruModelguruAuthor = new guruModelguruAuthor();
$details = $this->details_paid;
$n = count($details);
$config = $this->config;
$datetype = $config->datetype;
$currencypos = $config->currencypos;
$character = "GURU_CURRENCY_" . $config->currency;
$block = JRequest::getVar("block", "0");
$date_url = $guruModelguruAuthor->getDateFormat2(JRequest::getVar("date", ""));
$total_ammount = $guruModelguruAuthor->getPendingDetailsTotal();
$pagination = $this->getDetailsPagination();
$course_id_request = JRequest::getVar("course_id", "0");
$course_nam_top = $guruModelguruAuthor->getCourseName1($course_id_request);
$sum_price = $guruModelguruAuthor->getPendingDetailsTotalPrice();
$sum_price_paid = $guruModelguruAuthor->getPendingDetailsTotalPricePaid();
//-----------------------------------------------------------------------------------
$tot = "";
if (isset($total_ammount) && count($total_ammount) > 0) {
    $temp = array();
    foreach ($total_ammount as $key => $value) {
        if (isset($temp[$value["currency"]])) {
            $temp[$value["currency"]] += $value["amount_paid_author"];
        } else {
            $temp[$value["currency"]] = $value["amount_paid_author"];
        }