<?php
/*
Generated by OutputBooks Team
*/

defined("\x42\x41\x53\105\120\x41\124\110") or exit("\x4e\157\x20\144\x69\162\x65\143\164\40\163\143\162\x69\x70\x74\x20\x61\143\x63\145\x73\163\40\x61\154\x6c\x6f\167\145\144");
class Kot extends MY_Controller
{
    public function __construct()
    {
        goto FNxyb;
        vdnO8:
        $this->cId = get_company("\151\144");
        goto n3jQb;
        n3jQb:
        $this->load->model("\153\x6f\x74\115\157\x64\145\154");
        goto Ppdqw;
        FNxyb:
        parent::__construct();
        goto vdnO8;
        Ppdqw:
    }
    public function index()
    {
        $this->load->page("\150\x6f\x6d\x65");
    }
    public function details()
    {
        goto iEccO;
        iEccO:
        $result = array();
        goto vPCs4;
        COhZJ:
        $result["\x73\145\164\x74\x69\x6e\x67\x73"] = $this->kotModel->get_print_settings();
        goto xlVyn;
        alTeO:
        $result["\164\x61\x62\154\145\x73"] = $this->kotModel->tables();
        goto GlGEI;
        vPCs4:
        $result["\163\x65\x63\x74\x69\x6f\156\163"] = $this->kotModel->sections();
        goto uNIVU;
        uNIVU:
        $result["\167\141\x69\164\x65\162\x73"] = $this->kotModel->waiters();
        goto alTeO;
        xlVyn:
        $orders = $this->kotModel->table_orders();
        goto Lqms6;
        Lqms6:
        if (empty($orders) || empty($orders["\151\x74\x65\x6d\163"])) {
            $orders = array("\151\x74\145\x6d\x73" => array());
        }
        goto UfcNk;
        giPvv:
        $this->response->set_data("\x74\x61\153\x65\x41\167\x61\171", $result["\x74\x61\x6b\x65\x41\x77\141\171"], true);
        goto SAkL7;
        WuOp9:
        $this->response->set_data("\157\x72\144\x65\162\x73", $result["\157\x72\x64\145\162\163"], true);
        goto HL3BH;
        P8DtK:
        return true;
        goto CJp1v;
        Qo6Pu:
        $this->response->write();
        goto P8DtK;
        UfcNk:
        $result["\157\162\x64\x65\162\163"] = $orders["\x69\164\145\155\x73"];
        goto nSn6X;
        SAkL7:
        $this->response->set_data("\x73\x65\164\x74\x69\x6e\x67\163", $result["\x73\x65\164\164\151\156\147\163"]);
        goto WuOp9;
        pq3QN:
        $this->response->set_data("\163\145\143\x74\151\157\156\x73", $result["\163\145\x63\164\151\x6f\x6e\x73"], true);
        goto LxizA;
        LxizA:
        $this->response->set_data("\167\141\x69\x74\x65\162\163", $result["\x77\x61\x69\164\x65\162\x73"], true);
        goto WCfbQ;
        HL3BH:
        $this->response->set_data("\160\162\x69\156\164\145\162\163", $result["\x70\x72\151\x6e\164\145\x72"], true);
        goto Qo6Pu;
        gnQB3:
        $this->response->success();
        goto pq3QN;
        nSn6X:
        $result["\160\162\151\156\164\x65\x72"] = $this->kotModel->printerList();
        goto gnQB3;
        GlGEI:
        $result["\x74\141\x6b\145\101\167\141\171"] = $this->kotModel->tables(false, true);
        goto COhZJ;
        WCfbQ:
        $this->response->set_data("\x74\141\x62\x6c\x65\x73", $result["\x74\x61\x62\154\145\163"], true);
        goto giPvv;
        CJp1v:
    }
    public function printsettings()
    {
        goto Y7ngW;
        C0TQh:
        $this->response->write();
        goto I_RND;
        Y7ngW:
        $settings = $this->kotModel->get_print_settings();
        goto hp6J9;
        hp6J9:
        $this->response->success();
        goto GqzUI;
        GqzUI:
        $this->response->set_data($settings);
        goto C0TQh;
        I_RND:
        return true;
        goto s_Qb9;
        s_Qb9:
    }
    public function save_section()
    {
        goto RT1Hx;
        rlT2o:
        return true;
        goto CIFQO;
        khDjn:
        $result = $this->kotModel->save_section($data);
        goto qqZbJ;
        qqZbJ:
        if (!empty($result)) {
            $this->response->success("\x53\x55\103\x43\105\123\123\x5f\123\101\x56\105");
            $this->response->set_data($result);
        } else {
            if ($this->kotModel->error) {
                $this->response->error($this->kotModel->error);
            }
        }
        goto TeNPj;
        TeNPj:
        $this->response->write();
        goto rlT2o;
        RT1Hx:
        $data = $this->request->post();
        goto khDjn;
        CIFQO:
    }
    public function delete_section()
    {
        goto dms9H;
        ETpPW:
        $this->response->write();
        goto pArdh;
        ziddQ:
        if (!empty($result)) {
            $this->response->success("\123\x55\103\103\105\123\123\x5f\104\x45\x4c\105\x54\105");
            $this->response->set_data($result);
        }
        goto ETpPW;
        k0H0C:
        $result = $this->kotModel->delete_section($data);
        goto ziddQ;
        pArdh:
        return true;
        goto YvT82;
        dms9H:
        $data = $this->request->post();
        goto k0H0C;
        YvT82:
    }
    public function save_section_order()
    {
        goto I68a7;
        I68a7:
        $data = $this->request->post();
        goto QXfKh;
        Wi2iA:
        return true;
        goto ajbkw;
        e1gIQ:
        if (!empty($result)) {
            $this->response->success("\123\x55\103\103\x45\x53\123\137\x53\101\x56\x45");
        }
        goto AgqRq;
        QXfKh:
        $result = $this->kotModel->save_section_order($data);
        goto e1gIQ;
        AgqRq:
        $this->response->write();
        goto Wi2iA;
        ajbkw:
    }
    public function save_waiter()
    {
        goto ONAD0;
        fbgoi:
        $this->response->write();
        goto wj_g4;
        ONAD0:
        $data = $this->request->post();
        goto y8ENy;
        wj_g4:
        return true;
        goto zqlkg;
        igENg:
        if (!empty($result)) {
            $this->response->success("\x53\125\103\103\x45\x53\123\x5f\123\101\126\x45");
            $this->response->set_data($result);
        } else {
            $this->response->error($this->kotModel->message);
        }
        goto fbgoi;
        y8ENy:
        $result = $this->kotModel->save_waiter($data);
        goto igENg;
        zqlkg:
    }
    public function delete_waiter()
    {
        goto zTVqY;
        bPeJc:
        return true;
        goto DEeTs;
        tnMBT:
        $this->response->write();
        goto bPeJc;
        xFE3M:
        $result = $this->kotModel->delete_waiter($data);
        goto bgrFa;
        bgrFa:
        if (!empty($result)) {
            $this->response->success("\123\x55\x43\x43\x45\x53\123\137\104\x45\114\x45\124\x45");
            $this->response->set_data($result);
        }
        goto tnMBT;
        zTVqY:
        $data = $this->request->post();
        goto xFE3M;
        DEeTs:
    }
    public function save_table()
    {
        goto SNDaz;
        kPYYW:
        if (!empty($result)) {
            $this->response->success("\x53\125\x43\103\x45\123\123\x5f\x53\x41\x56\x45");
            $this->response->set_data($result);
        }
        goto Zv1Ms;
        SNDaz:
        $data = $this->request->post();
        goto KALrR;
        Zv1Ms:
        $this->response->write();
        goto YmBJV;
        YmBJV:
        return true;
        goto XIZEO;
        KALrR:
        $result = $this->kotModel->save_table($data);
        goto kPYYW;
        XIZEO:
    }
    public function save_table_order()
    {
        goto aD43X;
        UPL8u:
        if (!empty($result)) {
            $this->response->success("\x53\125\x43\x43\x45\x53\x53\137\123\101\x56\105");
        }
        goto mA7vG;
        gSO4H:
        $result = $this->kotModel->save_table_order($data);
        goto UPL8u;
        aD43X:
        $data = $this->request->post();
        goto gSO4H;
        RaGKn:
        return true;
        goto UuGpV;
        mA7vG:
        $this->response->write();
        goto RaGKn;
        UuGpV:
    }
    public function delete_table()
    {
        goto Y8W9g;
        Y8W9g:
        $data = $this->request->post();
        goto t3X3b;
        j0fIq:
        $this->response->write();
        goto xTY7O;
        xTY7O:
        return true;
        goto efLTq;
        t3X3b:
        $result = $this->kotModel->delete_table($data);
        goto Mr8ZY;
        Mr8ZY:
        if (!empty($result)) {
            $this->response->success("\123\x55\103\x43\x45\123\x53\137\x44\105\114\105\x54\x45");
            $this->response->set_data($result);
        }
        goto j0fIq;
        efLTq:
    }
    public function print_trans($tType, $trans_id)
    {
        if (!$trans_id) {
            goto yuIoU;
            zOMB7:
            $this->response->write();
            goto LvDLo;
            LvDLo:
            return false;
            goto mzHx8;
            yuIoU:
            $this->response->error();
            goto zOMB7;
            mzHx8:
        }
    }
    public function printt($tType, $trans_id, $kotId = 0, $isDeleted = false)
    {
        goto WMkTm;
        XjaNP:
        $invPrintSettings = $this->companyModel->get_printsettings("\123\x52");
        goto tHxU8;
        PMU55:
        $this->load->model("\x63\157\x6d\x70\141\156\171\115\157\144\x65\154");
        goto ogPir;
        GDw0y:
        $result = $this->TransModel->get_trans_item($trans_id, array("\151\x73\x70\162\151\x6e\164" => 1, "\x74\x54\x79\x70\145" => $tType, "\x69\163\104\x65\154\145\x74\145\x64" => $isDeleted));
        goto jDIZE;
        KAMDY:
        if (!empty($settings["\163\x65\x74\x74\x69\x6e\147\163"]) && !empty($settings["\163\x65\164\164\151\x6e\x67\x73"]["\x69\147\x6e\157\x72\x65\x43\x61\x74\145\147\x6f\162\151\145\163"])) {
            $ignoreItems = $this->kotModel->get_ignore_categories_items($settings["\163\145\164\164\x69\x6e\147\163"]["\151\147\156\157\162\x65\x43\141\164\145\x67\x6f\x72\151\145\x73"]);
            if (!empty($ignoreItems["\151\x74\x65\155\111\x64\163"])) {
                goto OGtdm;
                baTbK:
                $result["\x64\x65\164\x61\151\x6c\x73"] = $newDetails;
                goto oRb0N;
                Z3i56:
                $result["\151\147\156\x6f\x72\145\111\x74\x65\155\163"] = explode("\x2c", $ignoreItems["\x69\x74\145\x6d\x49\144\163"]);
                goto CWf83;
                oRb0N:
                if (empty($newDetails)) {
                    goto bT94S;
                    g1nNa:
                    $this->response->write();
                    goto zKCPC;
                    zKCPC:
                    return true;
                    goto vY7yh;
                    bT94S:
                    $this->response->success();
                    goto g1nNa;
                    vY7yh:
                }
                goto xJv0Z;
                OGtdm:
                $newDetails = array();
                goto Z3i56;
                CWf83:
                if (!empty($result["\x64\145\x74\x61\x69\154\x73"])) {
                    foreach ($result["\144\x65\164\141\x69\154\x73"] as $key => $itm) {
                        goto oGjCL;
                        g8UVj:
                        $newDetails[] = $itm;
                        goto u98q0;
                        oGjCL:
                        if (in_array($itm["\151\x74\x65\x6d\111\x64"], $result["\x69\147\156\157\162\145\111\x74\x65\x6d\x73"])) {
                            goto fq0Ac;
                        }
                        goto g8UVj;
                        u98q0:
                        fq0Ac:
                        goto AtCy_;
                        AtCy_:
                    }
                    yJ6uX:
                }
                goto baTbK;
                xJv0Z:
            }
        }
        goto BfHrg;
        GIeS4:
        $result["\164\x6d\160\x5f\146\x69\x6c\145"] = $settings["\x74\x65\155\160\154\x61\164\145"];
        goto VvTxd;
        WRDBe:
        $company = get_company(array("\156\x61\x6d\x65", "\x61\x64\144\x72\145\x73\x73\x31", "\x61\x64\144\x72\145\163\x73\62", "\143\x69\x74\171", "\x7a\151\160", "\160\150\157\156\x65", "\155\x6f\x62\x69\x6c\145", "\143\x6f\x6e\146\151\147", "\x63\x6f\x75\156\164\162\x79\103\x6f\x64\x65", "\143\x6f\165\x6e\x74\x72\171", "\x73\164\141\164\x65\116\141\155\145", "\163\164\141\x74\145\x43\x6f\144\145", "\145\155\x61\151\154", "\x6c\157\x67\x6f", "\151\156\166\163\x69\x67\x6e", "\x61\144\x64\111\x6e\146\x6f"));
        goto x_aA1;
        ffDHK:
        if (empty($settings["\164\x65\155\x70\x6c\x61\164\145"])) {
            $settings["\x74\x65\155\x70\x6c\x61\164\145"] = "\x6b\157\x74";
        }
        goto GIeS4;
        JdG2O:
        $label["\x52\x65\x66\x65\162\x72\x65\144\x42\171"] = "\124\x61\142\154\145";
        goto D5XQy;
        xz9A9:
        $result["\x70\x72\x69\x6e\164\x63\x6f\154\x6f\162"] = "\43\x30\60\x30\60\60\x30";
        goto iwusV;
        z73Yp:
        $result["\160\x61\160\x65\x72"] = !empty($result["\160\x61\x70\145\162"]) ? $result["\160\141\160\145\162"] : "\x33";
        goto vz7n8;
        EHTXW:
        if (!empty($_GET) && isset($_GET["\144\157\x77\156\154\157\x61\144"])) {
            $download = $_GET["\x64\x6f\x77\156\154\157\x61\x64"];
        }
        goto PMU55;
        kQP1s:
        $result["\x63\x6f\155\160\141\x6e\171"] = $company;
        goto XjaNP;
        cjPs1:
        $result["\151\163\x52\145\164\141\x69\154"] = true;
        goto x_CQP;
        iwusV:
        $result["\x69\x73\x46\165\x6c\x6c\x50\141\x67\x65"] = false;
        goto iELSD;
        AyKg3:
        if (!empty($kotId)) {
            goto ePjW8;
            WPwAb:
            $kotPrinters = $this->kotModel->get_kot_printers($result["\151\144"], $kotId);
            goto r0Xze;
            r0Xze:
            if (!empty($kotPrinters[0]) && !empty($kotPrinters[0]["\151\x64"])) {
                $result["\x6b\x6f\164\120\162\151\156\x74\x65\x72\x73"] = $kotPrinters[0];
            }
            goto Lw0cc;
            ePjW8:
            $result["\x6b\x6f\x74\x49\x64"] = $kotId;
            goto WPwAb;
            Lw0cc:
        }
        goto KAMDY;
        x_CQP:
        $result["\x69\x73\120\162\x69\x6e\164"] = true;
        goto xz9A9;
        wwD4T:
        $company["\x63\157\155\160\141\156\171"] = $company["\156\141\x6d\x65"];
        goto e830k;
        YxiRV:
        $result["\x69\x73\103\157\x6d\x70\116\141\x6d\145"] = 0;
        goto WRDBe;
        ogPir:
        $this->load->model("\x54\x72\x61\156\163\115\x6f\x64\x65\154");
        goto GDw0y;
        x_aA1:
        if (empty($company) && !empty($this->cId)) {
            $company = $this->db->select("\52")->from("\143\157\x6d\160\x61\156\x69\145\x73")->where(array("\x69\x64" => $this->cId))->limit(1)->get()->row_array();
        }
        goto wwD4T;
        pvpA3:
        $settings = $this->kotModel->get_print_settings();
        goto AyKg3;
        dffLK:
        if (empty($result)) {
            show_404();
            return;
        }
        goto pvpA3;
        BfHrg:
        global $label;
        goto LjFob;
        LjFob:
        $label["\123\x61\154\145\163\x20\x52\x65\160"] = "\x57\141\151\x74\145\x72";
        goto JdG2O;
        WMkTm:
        if (!$trans_id) {
            goto SRHdG;
            JD5bY:
            return false;
            goto IRScz;
            ziyr0:
            $this->response->write();
            goto JD5bY;
            SRHdG:
            $this->response->error();
            goto ziyr0;
            IRScz:
        }
        goto IgNTJ;
        D5XQy:
        $this->load->language("\x70\x72\151\x6e\x74\164\155\x70\154");
        goto ffDHK;
        vz7n8:
        $result["\x64\157\167\x6e\154\x6f\x61\x64"] = false;
        goto cjPs1;
        I0AQV:
        $result["\151\163\143\x6f\155\160\x61\156\x79\141\x64\x64\162\145\163\163"] = 0;
        goto YxiRV;
        e830k:
        if ($result["\x69\x73\x4c\x6f\x67\157"] && !empty($company["\x6c\157\147\x6f"])) {
            goto O3Amg;
            VjOOF:
            $company["\154\157\147\x6f"] = $logo ? base64_encode_imgsrc($logo) : '';
            goto FWlM0;
            vH3NB:
            if (defined("\125\x53\105\137\x41\x57\x53\x5f\123\63") && USE_AWS_S3) {
                $s3_result = get_from_s3($logo);
                $logo = $s3_result["\102\x6f\x64\x79"];
            } else {
                if (file_exists(FCPATH . $logo)) {
                    goto yZ2U7;
                    zBuJZ:
                    $company["\x6c\x6f\147\x6f\x5f\167\x69\144\x74\x68"] = $imageSize[0];
                    goto XfzaH;
                    yZ2U7:
                    $imageSize = getimagesize(FCPATH . $logo);
                    goto dWloh;
                    dWloh:
                    $logo = file_get_contents(FCPATH . $logo);
                    goto zBuJZ;
                    XfzaH:
                    $company["\154\x6f\147\x6f\x5f\x68\x65\x69\x67\x68\x74"] = $imageSize[1];
                    goto uaHu2;
                    uaHu2:
                } else {
                    $logo = '';
                }
            }
            goto VjOOF;
            O3Amg:
            $logo = "\165\x70\x6c\x6f\x61\x64\x73" . DS . get_company("\x69\144") . DS . $company["\154\x6f\147\x6f"];
            goto vH3NB;
            FWlM0:
        } else {
            $company["\x6c\x6f\147\x6f"] = '';
        }
        goto kQP1s;
        aPXPV:
        if (!$download && !empty($result["\x6b\x6f\x74\120\162\151\x6e\164\x65\162\x73"])) {
            goto RHdnX;
            pHkrA:
            $result["\144\157\167\x6e\154\157\141\144"] = 0;
            goto Jv9Si;
            gkmRj:
            if (!empty($_GET["\x62\x36\x34"])) {
                $isB64 = true;
                unset($_GET["\142\66\x34"]);
            }
            goto Ph2gK;
            P1uma:
            return true;
            goto OTzR5;
            RHdnX:
            $isB64 = false;
            goto gkmRj;
            GWDUH:
            if (!empty($pdfUrl) && !empty($pdfUrl["\165\x72\x6c"])) {
                $return["\x70\144\146\125\x72\x6c"] = base_url() . str_replace("\134", "\x2f", $pdfUrl["\165\x72\x6c"]);
            }
            goto cuCEy;
            Ph2gK:
            $return = $result["\153\x6f\x74\120\x72\151\x6e\x74\x65\162\x73"];
            goto pHkrA;
            cuCEy:
            $this->response->success();
            goto qqihk;
            qqihk:
            $this->response->set_data($return);
            goto K70dw;
            Jv9Si:
            $pdfUrl = $this->TransModel->preparePdf($result, $settings);
            goto GWDUH;
            K70dw:
            $this->response->write();
            goto P1uma;
            OTzR5:
        } else {
            $this->TransModel->preparePdf($result, $settings);
            return true;
        }
        goto hgGKE;
        LF8B1:
        $result["\146\156\x61\x6d\x65"] = "\137" . $kotId;
        goto aPXPV;
        VvTxd:
        $result = array_merge($result, $settings["\x73\145\164\x74\x69\x6e\147\163"]);
        goto z73Yp;
        tHxU8:
        $settings = array_merge($invPrintSettings, $settings["\x73\x65\164\x74\151\156\147\x73"]);
        goto LF8B1;
        iELSD:
        $result["\x64\157\x77\x6e\154\x6f\141\144"] = 1;
        goto I0AQV;
        jDIZE:
        if (!empty($result["\162\145\x66\137\x69\144"])) {
            $section = $this->kotModel->tables($result["\162\x65\146\137\151\144"]);
            if (!empty($section)) {
                $result["\x73\x65\x63\x74\151\157\x6e"] = $section;
            }
        }
        goto dffLK;
        IgNTJ:
        $download = true;
        goto EHTXW;
        hgGKE:
    }
    public function save_print_settings()
    {
        goto ubAcv;
        ubAcv:
        $data = $this->request->post();
        goto I9JXj;
        c3cXs:
        if (!empty($result)) {
            $this->response->success("\123\125\x43\x43\105\123\x53\137\123\x41\x56\x45");
            $this->response->set_data($result);
        } else {
            $this->response->error($this->kotModel->message);
        }
        goto D_L5V;
        I9JXj:
        $result = $this->kotModel->save_print_settings($data);
        goto c3cXs;
        ErxFl:
        return true;
        goto C62Nk;
        D_L5V:
        $this->response->write();
        goto ErxFl;
        C62Nk:
    }
    public function save_billing()
    {
        goto qLF_a;
        J6dI3:
        $this->response->write();
        goto NgTf3;
        Yko_d:
        $result = $this->kotModel->save_billing($data);
        goto GGN87;
        NgTf3:
        return true;
        goto MTPhG;
        qLF_a:
        $data = $this->request->post();
        goto Yko_d;
        GGN87:
        if (!empty($result)) {
            $this->response->success("\123\125\x43\x43\105\x53\123\137\123\101\x56\x45");
            $this->response->set_data($result);
        } else {
            if (!empty($this->kotModel->message)) {
                $this->response->error($this->kotModel->message);
            }
        }
        goto J6dI3;
        MTPhG:
    }
    public function split_table()
    {
        goto aYyfa;
        QkzSC:
        $this->response->write();
        goto SjfqP;
        qxvRC:
        $ref = $this->kotModel->split_table($data);
        goto hGZ3t;
        SjfqP:
        return true;
        goto U5iKi;
        hGZ3t:
        $this->response->set_data("\162\145\146", $ref);
        goto QkzSC;
        aYyfa:
        $data = $this->request->post();
        goto qxvRC;
        U5iKi:
    }
    public function table_orders()
    {
        goto yF3OP;
        yF3OP:
        $data = $this->request->post();
        goto iuRs2;
        iuRs2:
        $orders = $this->kotModel->table_orders($data);
        goto lqKkm;
        slsf0:
        return true;
        goto P7FtP;
        lqKkm:
        if (!empty($orders["\151\x74\145\155\163"])) {
            $this->response->set_data("\157\162\x64\145\162\x73", $orders["\151\x74\145\155\x73"], true);
            unset($orders["\151\164\145\155\x73"]);
        }
        goto D8FbT;
        A_Cz8:
        $this->response->write();
        goto slsf0;
        D8FbT:
        $this->response->set_data($orders);
        goto A_Cz8;
        P7FtP:
    }
    public function orders_listing()
    {
        goto mTuen;
        KCVCU:
        $this->response->write();
        goto jrpDq;
        jrpDq:
        return true;
        goto lpRM8;
        cP2AW:
        $this->response->set_data($orders);
        goto KCVCU;
        Dk6Qg:
        $orders = $this->kotModel->orders_listing($data);
        goto FPnuN;
        FPnuN:
        if (!empty($orders["\x69\x74\145\x6d\x73"])) {
            $this->response->set_data("\x6f\x72\144\145\x72\163", $orders["\151\x74\145\155\163"], true);
            unset($orders["\x69\x74\145\x6d\163"]);
        }
        goto cP2AW;
        mTuen:
        $data = $this->request->post();
        goto Dk6Qg;
        lpRM8:
    }
    public function save_transaction()
    {
        goto S4XFU;
        mCDW7:
        if (!empty($result)) {
            goto a3PN1;
            Vnv1A:
            return true;
            goto va4cV;
            oF3yn:
            $this->response->set_data("\x64\141\x74\x61", $result);
            goto Gx4cu;
            Gx4cu:
            $this->response->write();
            goto Vnv1A;
            a3PN1:
            $this->response->success();
            goto oF3yn;
            va4cV:
        }
        goto dCrQq;
        dCrQq:
        $this->response->error($this->kotModel->message);
        goto E6wQE;
        E6wQE:
        $this->response->write();
        goto CAS7y;
        q8qh9:
        $result = $this->kotModel->save_transcation($data);
        goto mCDW7;
        CAS7y:
        return false;
        goto f50az;
        S4XFU:
        $data = $this->request->post();
        goto q8qh9;
        f50az:
    }
    public function change_table()
    {
        goto xrf4t;
        wHKsy:
        return false;
        goto js9f6;
        umhLT:
        $this->response->write();
        goto wHKsy;
        NFPjI:
        if ($result = $this->kotModel->change_table($data)) {
            goto QyRo0;
            nqNDO:
            return true;
            goto Jmvh5;
            OcTNP:
            $this->response->write();
            goto nqNDO;
            QyRo0:
            $this->response->success();
            goto OcTNP;
            Jmvh5:
        }
        goto o2ddT;
        xrf4t:
        $data = $this->request->post();
        goto NFPjI;
        o2ddT:
        $this->response->set_data("\155\x73\147", $this->kotModel->message);
        goto umhLT;
        js9f6:
    }
    public function merge_table()
    {
        goto G4691;
        knlWz:
        $this->response->write();
        goto ZqLQq;
        snmBH:
        if ($result = $this->kotModel->merge_table($data)) {
            goto q5cYy;
            q5cYy:
            $this->response->success();
            goto SS01M;
            N4F53:
            return true;
            goto CnsM2;
            SS01M:
            $this->response->write();
            goto N4F53;
            CnsM2:
        }
        goto Lf9sv;
        Lf9sv:
        $this->response->set_data("\x6d\x73\147", $this->kotModel->message);
        goto knlWz;
        G4691:
        $data = $this->request->post();
        goto snmBH;
        ZqLQq:
        return false;
        goto JzqhV;
        JzqhV:
    }
    public function pos_types()
    {
        goto N15aV;
        pNcwE:
        if (!($result = $this->kotModel->pos_types($params))) {
            goto xytfq;
            ygZWm:
            return false;
            goto hpjOh;
            kGdJn:
            $this->response->write();
            goto ygZWm;
            xytfq:
            $this->response->set_data("\x6d\x73\x67", $this->kotModel->message);
            goto kGdJn;
            hpjOh:
        }
        goto Lv6bd;
        lUPhq:
        $this->response->write();
        goto RCqrc;
        Lv6bd:
        $this->response->set_data("\151\164\145\x6d\163", $result, true);
        goto lUPhq;
        N15aV:
        $params = $this->request->post();
        goto pNcwE;
        RCqrc:
        return true;
        goto pc4JC;
        pc4JC:
    }
    public function save_printer()
    {
        goto lbbwa;
        AQNT9:
        return true;
        goto tW7vM;
        sKck5:
        $result = array();
        goto F_0c0;
        JMiQ6:
        $this->response->write();
        goto AQNT9;
        lbbwa:
        $data = $this->request->post();
        goto sKck5;
        F_0c0:
        $result = $this->kotModel->save_printer($data);
        goto BaCNV;
        BaCNV:
        if (!empty($result)) {
            $this->response->success("\x53\x55\103\103\x45\123\x53\x5f\123\x41\x56\x45");
            $this->response->set_data(array("\x69\144" => $result));
        } else {
            if ($this->kotModel->message) {
                $this->response->error($this->kotModel->message);
            }
        }
        goto JMiQ6;
        tW7vM:
    }
    public function delete_printer()
    {
        goto PvUlH;
        PvUlH:
        $data = $this->request->post();
        goto rZX17;
        QeLCM:
        $this->response->write();
        goto isn1Y;
        iLp42:
        if (!empty($result)) {
            $this->response->success("\x53\125\103\103\x45\123\x53\x5f\104\x45\x4c\x45\x54\105");
            $this->response->set_data("\x69\x64", $result);
        }
        goto QeLCM;
        rZX17:
        $result = $this->kotModel->delete_printer($data);
        goto iLp42;
        isn1Y:
        return true;
        goto VCNSj;
        VCNSj:
    }
    public function edit_printer()
    {
        goto sd7f2;
        cwDbj:
        $result = $this->kotModel->edit_printer($data);
        goto WDOOu;
        bMUQy:
        return true;
        goto SPITz;
        sd7f2:
        $data = $this->request->post();
        goto cwDbj;
        FHK1T:
        $this->response->write();
        goto bMUQy;
        WDOOu:
        if (!empty($result)) {
            $this->response->set_data($result);
        }
        goto FHK1T;
        SPITz:
    }
    public function cancel_kot()
    {
        goto gk2il;
        Yu1VL:
        $result = $this->kotModel->cancel_kot($data);
        goto aYBco;
        aYBco:
        if (!empty($result)) {
            $this->response->set_data($result);
        }
        goto TOi0H;
        TOi0H:
        $this->response->write();
        goto PAK23;
        gk2il:
        $data = $this->request->post();
        goto Yu1VL;
        PAK23:
        return true;
        goto iyili;
        iyili:
    }
}
