1
0

locations.php 537 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App;
  3. $core = Core::getInstance();
  4. $core->addBreadcrumb("/locations", __("Locations"));
  5. $user = $core->getUser();
  6. $count = Location::count(["dts_deleted" => null]);
  7. $pagination = new Pagination($count);
  8. $pagination->setTerms(__("%s location"), __("%s locations"));
  9. $locations = Location::query([], [
  10. "sort" => "name",
  11. "offset" => $pagination->getOffset(),
  12. "limit" => $pagination->getPageSize()
  13. ]);
  14. View::include("header");
  15. View::include("locations", compact("locations", "pagination"));
  16. View::include("footer");