log.php 509 B

123456789101112131415
  1. <?php /** @noinspection PhpUnhandledExceptionInspection */
  2. $page_title = "Log";
  3. Core::addBreadcrumb("/account", "Account");
  4. Core::addBreadcrumb("/account/log", $page_title);
  5. $entries = LocationUpdateLogEntry::query([], ["sort" => "id", "order" => "desc", "limit" => 1000]);
  6. User::load(array_column($entries, "user_id"));
  7. Location::load(array_column($entries, "location_id"));
  8. View::includeOnce("header", compact("page_title"));
  9. View::include("log", ["entries" => $entries]);
  10. View::includeOnce("footer");