z-song / laravel-admin

Build a full-featured administrative interface in ten minutes
https://laravel-admin.org
MIT License
11.12k stars 2.81k forks source link

how to add edit and delete button in popup box? #5780

Open jesnagifto opened 1 year ago

jesnagifto commented 1 year ago

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']); });

return new Table(['ID', 'Fishname', 'Location', 'Image'], $comments->toArray());

}); 2023-05-27

Steps To Reproduce: