| 123456789101112131415161718192021 |
- <?php
- namespace App;
- $core = Core::getInstance();
- $core->addBreadcrumb("/customers", __("Customers"));
- $count = Customer::count();
- $pagination = new Pagination($count);
- $pagination->setTerms(__("%s customer"), __("%s customers"));
- $customers = Customer::query([], [
- "sort" => "name",
- "offset" => $pagination->getOffset(),
- "limit" => $pagination->getPageSize()
- ]);
- View::include("header");
- View::include("customers", compact("customers", "pagination"));
- View::include("footer");
|