
<?php

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// List of pages and metadata
define("PAGES", [
    "home" => [
        "title" => "Home",
        "navbar" => true,
        "icon" => "fas fa-home"
    ],
    "machines" => [
        "title" => "Machines",
        "navbar" => true,
        "icon" => "fas fa-desktop",
        "styles" => [
            "static/css/datatables.min.css",
            "static/css/tables.css"
        ],
        "scripts" => [
            "static/js/datatables.min.js",
            "static/js/machines.js"
        ]
    ],
    "components" => [
        "title" => "Components",
        "navbar" => true,
        "icon" => "fas fa-memory",
        "styles" => [
            "static/css/datatables.min.css",
            "static/css/tables.css"
        ],
        "scripts" => [
            "static/js/datatables.min.js",
            "static/js/components.js"
        ]
    ],
    "jobs" => [
        "title" => "Jobs",
        "navbar" => true,
        "icon" => "fas fa-tasks",
        "styles" => [
            "static/css/datatables.min.css",
            "static/css/tables.css"
        ],
        "scripts" => [
            "static/js/datatables.min.js",
            "static/js/jobs.js"
        ]
    ],
    "clients" => [
        "title" => "Clients",
        "navbar" => (empty($SETTINGS['apis']['invoiceninja']['token']) ? true : false),
        "icon" => "fas fa-users",
        "styles" => [
            "static/css/datatables.min.css",
            "static/css/tables.css"
        ],
        "scripts" => [
            "static/js/datatables.min.js",
            "static/js/clients.js"
        ]
    ],
    "404" => [
        "title" => "404 error"
    ],
    "editmachine" => [
        "title" => "Edit Machine",
        "styles" => [
            "static/css/select2.min.css",
            "static/css/select2-bootstrap4.min.css"
        ],
        "scripts" => [
            "static/js/select2.full.min.js",
            "static/js/select2-activate.js"
        ]
    ],
    "viewmachine" => [
        "title" => "View Machine"
    ],
    "addevent" => [
        "title" => "Add Event"
    ],
    "editcomponent" => [
        "title" => "Edit Component"
    ],
    "editclient" => [
        "title" => "Edit Client"
    ],
    "editjob" => [
        "title" => "Edit Job",
        "styles" => [
            "static/css/easymde.min.css"
        ],
        "scripts" => [
            "static/js/easymde.min.js",
            "static/js/editjob.js"
        ],
    ],
    "printlabel" => [
        "title" => "Print"
    ],
]);
