| 12345678910111213141516171819202122232425 |
- <?php /** @noinspection PhpUnhandledExceptionInspection */
- namespace App;
- use RuntimeException;
- /**
- * @var int $id
- */
- $customer = Customer::get($id);
- if(!$customer) {
- throw new RuntimeException(__("Customer not found."));
- }
- $core = Core::getInstance();
- $core->addBreadcrumb("/customers", __("Customers"));
- $core->addBreadcrumb($customer->getUrl(), $customer->name);
- $user = $core->getUser();
- $user->requireAdmin();
- View::include("header");
- View::include("customer", compact("customer"));
- View::include("footer");
|