Skip to content

Action grouping in single a TD #1643

Answered by tabuna
kubre asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kubre, you can take advantage of the grouping:

Group::make([
  Link::make()
    ->route('school.enquiry.edit', $enquiry->id)
    ->canSee($this->user->hasAccess('enquiry.edit'))
    ->icon('note'),
  
  ModalToggle::make()
    ->icon('share-alt')
    ->canSee($this->user->hasAccess('admission.create'))
    ->modal('chooseEnquirerType')
    ->modalTitle('Admission Process #1')
    ->method('proceedToAdmission')
    ->asyncParameters($enquiry->id),
  
  Button::make()
    ->icon('trash')
    ->type(Color::DANGER())
    ->canSee($this->user->hasAccess('enquiry.delete'))
    ->method('remove')
    ->confirm("Once deleted this can not be restored are you sure?")
    ->parameters([
      'id'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kubre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants