<?php
$this->angular([
    'angular-route.js',
    'pi.js',
]);
?>
<script>
    angular
        .module('<?php echo $module; ?>', ['ngRoute', 'pi'])
        .constant('config', {
            urlRoot: '<?php echo $this->url('', ['controller' => 'dashboard']); ?>',
            assetRoot: '<?php echo $this->assetModule('ng-template/admin/', '', false); ?>',
            data: {
                messagePerm: <?php echo (int)$messagePerm; ?>,
                message: <?php echo json_encode($message) ?>,
                links: <?php echo json_encode($links); ?>,
                summaryList: <?php echo json_encode($summaryList); ?>
            },
            t: {
                DASHBOARD: '<?php echo _a('Dashboard', 'system:admin'); ?>',
                EDIT: '<?php echo _a('Edit'); ?>',
                ANNOUNCEMENT: '<?php echo _a('Announcement'); ?>',
                SAVE: '<?php echo _a('Save'); ?>',
                CANCEL: '<?php echo _a('Cancel'); ?>',
                QUICKLINKS: '<?php echo _a('Quicklinks'); ?>',
                TITLE: '<?php echo _a('Title'); ?>',
                URL: '<?php echo _a('URL'); ?>',
                SUMMARY: '<?php echo _a('Summary'); ?>',
                POWEREDBY: '<?php echo _a('Powered by'); ?>',
                POWEREDP1: '<?php echo _a('Pi is a multi-tenant application development engine for cloud ready SaaS platform with support for SSO/OAuth. Pi Engine is developed in PHP and MySQL upon PHP frameworks including Laminas Project and many other PHP project supported by psr-4 standard composer like Hybridauth, Phpseclib, GeoPhp, TcPdf, Imagine, MongoDB, ArangoDB , Stripe and more, Pi use some famous UI frameworks like jQuery, AngularJS, Bootstrap, CKEditor as well as icons by FontAwesome.');?>',
                POWEREDP2: '<?php echo _a('Pi Engine is an open source project and follows the philosophy of open standard, open design, open development and open management. Pi is born as a complete open source project and intended to build a sustainable ecosystem that benefits all contributors and users.');?>'
            }
        });
</script>
<script src="<?php echo $this->assetModule('admin/dashboard.js'); ?>"></script>