| 1234567891011121314151617181920 |
- <?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);
- $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", "icons"));
- View::includeOnce("footer");
|