@@ -74,7 +74,7 @@ public static function table(Table $table): Table
7474 Tables \Columns \TextColumn::make ('operator ' )->label (__ ('label.seed_box_record.operator ' ))->searchable (),
7575 Tables \Columns \TextColumn::make ('bandwidth ' )->label (__ ('label.seed_box_record.bandwidth ' )),
7676 Tables \Columns \TextColumn::make ('asn ' )->label (__ ('label.seed_box_record.asn ' )),
77- Tables \Columns \TextColumn::make ('ip ' )
77+ Tables \Columns \TextColumn::make ('ipRange ' )
7878 ->label (__ ('label.seed_box_record.ip ' ))
7979 ->searchable (true , function (Builder $ query , $ search ) {
8080 try {
@@ -87,7 +87,7 @@ public static function table(Table $table): Table
8787 do_log ("Invalid IP: $ search, error: " . $ exception ->getMessage ());
8888 }
8989 })
90- -> formatStateUsing ( fn ( $ record ) => $ record -> ip ?: sprintf ( ' %s ~ %s ' , $ record -> ip_begin , $ record -> ip_end )) ,
90+ ,
9191 Tables \Columns \TextColumn::make ('comment ' )->label (__ ('label.comment ' ))->searchable (),
9292 Tables \Columns \IconColumn::make ('is_allowed ' )->boolean ()->label (__ ('label.seed_box_record.is_allowed ' )),
9393 Tables \Columns \BadgeColumn::make ('status ' )
@@ -99,6 +99,7 @@ public static function table(Table $table): Table
9999 ->formatStateUsing (fn ($ record ) => $ record ->statusText )
100100 ->label (__ ('label.seed_box_record.status ' )),
101101 ])
102+ ->defaultSort ('id ' , 'desc ' )
102103 ->filters ([
103104 Tables \Filters \Filter::make ('id ' )
104105 ->form ([
@@ -148,7 +149,7 @@ public static function table(Table $table): Table
148149 try {
149150 $ rep ->updateStatus ($ record , $ data ['status ' ], $ data ['reason ' ]);
150151 } catch (\Exception $ exception ) {
151- Filament:: notify ( ' danger ' , class_basename ($ exception ));
152+ send_admin_fail_notification ( class_basename ($ exception ));
152153 }
153154 })
154155 ,
0 commit comments