@@ -68,6 +68,11 @@ public static function table(Table $table): Table
6868 ->relationship ('county ' , 'name ' )
6969 ->multiple (),
7070
71+ SelectFilter::make ('created_by ' )
72+ ->label (__ ('map_points.fields.created_by ' ))
73+ ->relationship ('createdBy ' , 'full_name ' )
74+ ->multiple (),
75+
7176 SelectFilter::make ('materials ' )
7277 ->label (__ ('map_points.fields.materials ' ))
7378 ->relationship ('materials ' , 'name ' )
@@ -85,7 +90,7 @@ public static function table(Table $table): Table
8590 ->icon ('heroicon-m-eye ' ),
8691 Tables \Actions \Action::make ('view_point_on_map ' )
8792 ->label (__ ('map_points.buttons.view_on_map ' ))
88- ->url (fn (Point $ record ) => route ('front.map.redirect ' , $ record ) )
93+ ->url (fn (Point $ record ) => route ('front.map.redirect ' , $ record ))
8994 ->openUrlInNewTab ()
9095 ->icon ('heroicon-m-map-pin ' ),
9196 ])
@@ -259,6 +264,11 @@ public static function getColumns()
259264 ->sortable ()
260265 ->wrap (),
261266
267+ TextColumn::make ('createdBy.full_name ' )
268+ ->label (__ ('map_points.fields.created_by ' ))
269+ ->toggleable ()
270+ ->wrap (),
271+
262272 TextColumn::make ('materials.name ' )
263273 ->label (__ ('map_points.materials ' ))
264274 ->searchable ()
@@ -286,6 +296,7 @@ public static function getColumns()
286296
287297 TextColumn::make ('proximity_count ' )
288298 ->badge ()
299+ ->toggleable ()
289300 ->color (fn ($ state ) => $ state > 0 ? 'warning ' : 'success ' )
290301 ->label (__ ('map_points.proximity_count ' )),
291302
0 commit comments