1
0

locations.php 548 B

1234567891011121314151617181920
  1. <?php
  2. Core::addBreadcrumb("/account", "Account");
  3. Core::addBreadcrumb("/account/locations", "Locations");
  4. $customer = Customer::getForAdmin();
  5. if(!$customer) throw new Exception("You do not have permission to access this page.");
  6. $page_title = "$customer->name Locations";
  7. Core::addBreadcrumb("/account/locations?customer_id=$customer->id", $page_title);
  8. $locations = $customer->getLocations();
  9. View::includeOnce("header", compact("page_title"));
  10. View::include("locations", compact("customer", "locations"));
  11. View::includeOnce("footer");
  12. ?>