HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/public_html/conradinvestmentgroup.com/pm/app/Controllers/Reports.php
<?php

namespace App\Controllers;

class Reports extends Security_Controller {

    function __construct() {
        parent::__construct();
        $this->access_only_team_members();
    }

    public function index() {
        $redirect_to = "";
        $reports = get_reports_topbar(true);
        $count = 1;
        foreach ($reports as $report) {
            if ($count == 1) {
                if (get_array_value($report, "single_button") == 1) {
                    $redirect_to = get_array_value($report, "url");
                } else {
                    foreach (get_array_value($report, "dropdown_item") as $sub_page) {
                        if ($count == 1) {
                            $redirect_to = get_array_value($sub_page, "url");
                        }
                        $count++;
                    }
                }
            } else {
                continue;
            }
            $count++;
        }

        $view_data["redirect_to"] = $redirect_to;
        return $this->template->rander("reports/index", $view_data);
    }
}

/* End of file Reports.php */
/* Location: ./app/controllers/Reports.php */