@foreach($buttons as $btn => $btnData)
@if(strpos($btnData['class'],'delete') == false )
@if(strpos(request()->url(),'trashed') == false)
@endif
@else
@if( hasRoute('restore') && $item->trashed())
@else
@endif
@endif
@endforeach
@if(config('app.xlang.active') && isset($item->translatable))
@endif