<?php use Enpowi\App; use Enpowi\Modules\Module; use Enpowi\Modules\DataOut; Module::is(); $data = (new DataOut())->add('territoryCount', ETM\Territory::count())->add('pages', ETM\Territory::pages())->out(); ?> <div data="<?php echo $data; ?> " class="container"> <h3>Territory Book</h3> <table> <tr> <th>Page</th> <th> </th> <th>Territories</th> </tr> <tr v-repeat="page : pages"> <td><a href="#/territory/page?page={{ $index + 1 }}">{{ $index + 1 }}</a></td> <td></td> <td>{{ page[0] + ' - ' + page[page.length - 1] }}</td> </tr> </table> </div>
<?php use Enpowi\App; use Enpowi\Modules\Module; use Enpowi\Modules\DataOut; Module::is(); $page = App::paramInt('page'); $data = (new DataOut())->add('territoryCount', ETM\Territory::count())->add('page', $page)->add('territories', ETM\Territory::page($page))->out(); ?> <div v-module data="<?php echo $data; ?> "> <title>Territory Assignment Records Page {{ page }}</title> <style> * { font-family: "Consolas", monospace; font-size: 35px; line-height: 53px; text-decoration: none; color: black; } a { color: black ! important; } </style> <img id="card" src="assets/s13.png" style="position: absolute; top: 0px; left: 0px;"/> <table v-repeat="territory : territories"