mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
backend bonus log exclude seeding default
This commit is contained in:
@@ -88,6 +88,16 @@ class BonusLogResource extends Resource
|
||||
->options(BonusLogs::listStaticProps(BonusLogs::$businessTypes, 'bonus-log.business_types', true))
|
||||
->label(__('bonus-log.fields.business_type'))
|
||||
,
|
||||
Tables\Filters\Filter::make('exclude_seeding_bonus')
|
||||
->toggle()
|
||||
->label(__('bonus-log.exclude_seeding_bonus'))
|
||||
->query(function (Builder $query, array $data) {
|
||||
if ($data['isActive']) {
|
||||
$query->whereNotIn("business_type", BonusLogs::$businessTypeBonus);
|
||||
}
|
||||
})
|
||||
->default()
|
||||
,
|
||||
])
|
||||
->actions([
|
||||
// Tables\Actions\EditAction::make(),
|
||||
|
||||
Reference in New Issue
Block a user