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