| 1234567891011121314151617181920212223 |
- <?php
- namespace App;
- $core = Core::getInstance();
- $core->addBreadcrumb("/suppliers", __("Suppliers"));
- $nvp = [];
- $count = Supplier::count($nvp);
- $pagination = new Pagination($count);
- $pagination->setTerms(__("%s supplier"), __("%s suppliers"));
- $suppliers = Supplier::query([], [
- "sort" => "name",
- "offset" => $pagination->getOffset(),
- "limit" => $pagination->getPageSize()
- ]);
- View::include("header");
- View::include("suppliers", compact("suppliers", "pagination"));
- View::include("footer");
|