diff --git a/app/Filament/Resources/User/BonusLogResource.php b/app/Filament/Resources/User/BonusLogResource.php index 100de559..31b95514 100644 --- a/app/Filament/Resources/User/BonusLogResource.php +++ b/app/Filament/Resources/User/BonusLogResource.php @@ -36,10 +36,10 @@ class BonusLogResource extends Resource return __('admin.sidebar.bonus_log'); } - public static function getModelLabel(): string - { - return sprintf('%s(%s)', get_model_label(static::getModel()), __('bonus-log.exclude_seeding_bonus')); - } +// public static function getModelLabel(): string +// { +// return sprintf('%s(%s)', get_model_label(static::getModel()), __('bonus-log.exclude_seeding_bonus')); +// } public static function form(Schema $schema): Schema { diff --git a/public/bonus-log.php b/public/bonus-log.php index d29d946e..d924cf3f 100644 --- a/public/bonus-log.php +++ b/public/bonus-log.php @@ -77,9 +77,9 @@ JS; \Nexus\Nexus::js($resetJs, 'footer', false); $rep = new \App\Repositories\BonusRepository(); -$total = $rep->getCount($uid, $category, $businessType); +$total = $rep->getCount($category, $uid, $businessType); list($pagertop, $pagerbottom, $limit, $offset, $pageSize, $page) = pager(50, $total, "$pagerParam&"); -$list = $rep->getList($uid, $category, $businessType, $page + 1, $pageSize); +$list = $rep->getList($category, $uid, $businessType, $page + 1, $pageSize); begin_main_frame(); print($filterForm); print("");