<?php
/*
Generated by OutputBooks Team
*/

defined("\102\101\123\105\120\x41\x54\110") or exit("\116\157\40\144\151\x72\x65\x63\x74\x20\x73\x63\x72\151\x70\x74\40\141\143\x63\145\x73\163\x20\141\x6c\154\157\167\x65\x64");
class Dashboard extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->model("\104\141\163\x68\x62\157\141\x72\x64\x4d\x6f\144\x65\x6c");
    }
    function income_details()
    {
        goto wgYwv;
        hf2CB:
        $result = array();
        goto ssAbW;
        ssAbW:
        $data = $this->request->post();
        goto XBnjQ;
        Edj0Z:
        $this->response->write();
        goto azBtT;
        ZxOBF:
        $this->response->set_data($result);
        goto Edj0Z;
        azBtT:
        return true;
        goto V0zp2;
        wgYwv:
        valid_permission("\x44\101\123\x48", 1);
        goto hf2CB;
        XBnjQ:
        $data["\x64\141\164\145"] = !empty($data["\x64\x61\164\145"]) ? $data["\x64\x61\164\145"] : "\124\106\x59";
        goto JtZze;
        JtZze:
        $result = $this->DashboardModel->get_income_details($data);
        goto ZxOBF;
        V0zp2:
    }
    function income_expenses()
    {
        goto qXGR1;
        DYqxz:
        return true;
        goto NbziC;
        GXd99:
        $this->response->write();
        goto DYqxz;
        qXGR1:
        valid_permission("\104\101\123\110", 1);
        goto VDOPU;
        BLMKH:
        $data = $this->request->post();
        goto g_GEf;
        VDOPU:
        $result = array();
        goto BLMKH;
        g_GEf:
        $result = $this->DashboardModel->get_income_expenses($data);
        goto c42SZ;
        c42SZ:
        if ($result) {
            $this->response->set_data("\x69\x74\145\x6d\163", $result, true);
        }
        goto GXd99;
        NbziC:
    }
    function receivables()
    {
        goto Pvc0e;
        Pvc0e:
        valid_permission("\x44\x41\x53\110", 1);
        goto duqgW;
        WomH2:
        $this->response->write();
        goto ylGRT;
        ylGRT:
        return true;
        goto qZCyC;
        CuT5x:
        $result = $this->DashboardModel->get_outstanding_receivables($data);
        goto dXAv_;
        duqgW:
        $result = array();
        goto unL9L;
        dXAv_:
        if ($result) {
            $this->response->set_data("\x69\164\145\x6d\163", $result, true);
        }
        goto WomH2;
        unL9L:
        $data = $this->request->post();
        goto CuT5x;
        qZCyC:
    }
    function outstanding()
    {
        goto dcxcO;
        ntcH2:
        $result = array();
        goto E9TgM;
        dcxcO:
        valid_permission("\x44\101\123\x48", 1);
        goto ntcH2;
        r997k:
        $this->response->write();
        goto NMqlg;
        pnjuF:
        $this->response->set_data($result);
        goto r997k;
        NMqlg:
        return true;
        goto shWO3;
        cCvVD:
        $result = $this->DashboardModel->get_outstanding_details($data);
        goto pnjuF;
        E9TgM:
        $data = $this->request->post();
        goto cCvVD;
        shWO3:
    }
    function expenses()
    {
        goto UQNm4;
        s2GaJ:
        $result = array();
        goto k8JQ6;
        k8JQ6:
        $data = $this->request->post();
        goto YiNJB;
        q722V:
        $result = $this->DashboardModel->get_expenses($data);
        goto RHvwg;
        UQNm4:
        valid_permission("\104\x41\x53\110", 1);
        goto s2GaJ;
        YiNJB:
        $data["\x64\141\164\x65"] = !empty($data["\x64\141\x74\x65"]) ? $data["\144\x61\164\145"] : "\124\106\x59";
        goto q722V;
        BPQ51:
        $this->response->write();
        goto W7m0S;
        RHvwg:
        if ($result) {
            $this->response->set_data("\x69\164\x65\x6d\163", $result, true);
        }
        goto BPQ51;
        W7m0S:
        return true;
        goto QWgge;
        QWgge:
    }
    function cashflow()
    {
        goto EaQod;
        GI8cw:
        $data = $this->request->post();
        goto qwPka;
        EaQod:
        valid_permission("\x44\x41\x53\x48", 1);
        goto g2Ym1;
        aYOGl:
        $this->response->write();
        goto mJ1q3;
        n4e4b:
        $result = $this->DashboardModel->get_cashflowdetails($data);
        goto ocYV4;
        mJ1q3:
        return true;
        goto yuf2i;
        qwPka:
        $data["\144\x61\164\x65"] = !empty($data["\144\x61\164\145"]) ? $data["\x64\141\x74\x65"] : "\x54\106\x59";
        goto n4e4b;
        ocYV4:
        $this->response->set_data($result);
        goto aYOGl;
        g2Ym1:
        $result = array();
        goto GI8cw;
        yuf2i:
    }
    function sales_details()
    {
        goto QwIWJ;
        gTrO3:
        $result = $this->DashboardModel->get_sales_details($data);
        goto axups;
        i5WSd:
        $result = array();
        goto OzCPH;
        QwIWJ:
        valid_permission("\x44\x41\x53\x48", 1);
        goto i5WSd;
        mwEoa:
        $this->response->write();
        goto tOSj2;
        OzCPH:
        $data = $this->request->post();
        goto gTrO3;
        axups:
        $this->response->set_data("\151\164\145\155\163", $result, true);
        goto mwEoa;
        tOSj2:
        return true;
        goto OIjMI;
        OIjMI:
    }
    function top_customers()
    {
        goto rP4qs;
        vZPV3:
        $result = $this->DashboardModel->get_top_customers($data);
        goto Sl3kQ;
        kaJ4L:
        $this->response->write();
        goto j6EpE;
        Sl3kQ:
        $this->response->set_data("\151\164\145\155\163", $result, true);
        goto kaJ4L;
        j6EpE:
        return true;
        goto zLrB1;
        qBhkt:
        $data = $this->request->post();
        goto vZPV3;
        rP4qs:
        valid_permission("\104\x41\123\110", 1);
        goto zPGUp;
        zPGUp:
        $result = array();
        goto qBhkt;
        zLrB1:
    }
    function top_items()
    {
        goto p4Peb;
        YQ3nY:
        $result = $this->DashboardModel->get_top_items($data);
        goto tbN3t;
        DyaGg:
        $this->response->write();
        goto tAYLM;
        p4Peb:
        valid_permission("\x44\x41\x53\110", 1);
        goto tgMvT;
        tbN3t:
        $this->response->set_data("\151\x74\x65\x6d\163", $result, true);
        goto DyaGg;
        tAYLM:
        return true;
        goto KfaMf;
        tgMvT:
        $result = array();
        goto r6gia;
        r6gia:
        $data = $this->request->post();
        goto YQ3nY;
        KfaMf:
    }
}
