| 1234567891011121314151617181920212223 |
- <?php
- namespace App;
- $core = Core::getInstance();
- $core->addBreadcrumb("/locations", __("Locations"));
- $user = $core->getUser();
- $count = Location::count(["dts_deleted" => null]);
- $pagination = new Pagination($count);
- $pagination->setTerms(__("%s location"), __("%s locations"));
- $locations = Location::query([], [
- "sort" => "name",
- "offset" => $pagination->getOffset(),
- "limit" => $pagination->getPageSize()
- ]);
- View::include("header");
- View::include("locations", compact("locations", "pagination"));
- View::include("footer");
|