|
|
@@ -9,11 +9,12 @@ 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();
|
|
|
+$icons = [];
|
|
|
+$icons[] = new AccountIcon(__("Projects"), "/account/projects/{$id}", "list");
|
|
|
+$icons[] = new AccountIcon(__("Locations"), "/account/locations/{$id}", "map-marker");
|
|
|
+$icons[] = new AccountIcon(__("Reports"), "/account/reports/{$id}", "chart-pie");
|
|
|
+$icons[] = new AccountIcon(__("Templates"), "/account/templates/{$id}", "file-alt");
|
|
|
|
|
|
View::includeOnce("header", compact("page_title"));
|
|
|
-View::include("customer", compact("customer", "projects", "locations"));
|
|
|
+View::include("customer", compact("customer", "icons"));
|
|
|
View::includeOnce("footer");
|
|
|
-
|
|
|
-?>
|