| 12345678910111213141516171819 |
- <?php
- $customer = Customer::get($id);
- if(!$customer) throw new Exception("Customer not found.");
- $page_title = $customer->name;
- Core::addBreadcrumb("/account", "Account");
- Core::addBreadcrumb("/account/customers", "Customers");
- Core::addBreadcrumb("/account/customers/$id", $page_title);
- $projects = Project::query(["customer_id" => $id]);
- $locations = $customer->getLocations();
- View::includeOnce("header", compact("page_title"));
- View::include("customer", compact("customer", "projects", "locations"));
- View::includeOnce("footer");
- ?>
|