newTable() ->editColumn('product', function ($review) { return $review->product->name; }) ->editColumn('status', function ($review) { return $review->is_approved ? '' : ''; }); } }