@can('delete ' . $model) @php $on_click = "if(confirm(\'" . transIf( $lang['question.destroy'], $model . '.question.destroy' ) ."\')) { $(this).closest(\'form\').submit() }"; @endphp ' @switch( $show_type ) @case('icon_button')
@csrf @method('DELETE')
@break @case('button')
@csrf @method('DELETE')
@break @case('link') @default
  • @csrf @method('DELETE') {{ transIf( $lang['button.destroy'], $model . '.button.destroy' ) }}
  • @break @endswitch ' + @endcan