@can('delete ' . $model) @php //$on_click = "if(confirm(\'" . transIf( $lang['question.destroy'], $model . '.question.destroy' ) ."\')) { $(this).closest(\'form\').submit() }"; $on_click = "if(!$('#destroy_reason_modal').length) { $( \"body\" ).append( '
' ); } $('#destroy_reason_modal').append( $(this).closest('form').find('.modal.fade') );"; @endphp ' @switch( $show_type ) @case('icon_button') @break @case('button') @break @case('link') @default