Open jesnagifto opened 1 year ago
$grid->column('user_id', __('Details'))->modal('operations', function ($model) { $comments = $model->Operations()->take(10)->get()->map(function ($comment) { return $comment->only(['id', 'fishname', 'location', 'image']); });
return new Table(['ID', 'Fishname', 'Location', 'Image'], $comments->toArray());
});
Description:
$grid->column('user_id', __('Details'))->modal('operations', function ($model) { $comments = $model->Operations()->take(10)->get()->map(function ($comment) { return $comment->only(['id', 'fishname', 'location', 'image']); });
});
Steps To Reproduce: