@php if (!isset($btns)) { $btns = 'sedr'; } @endphp @if (!$trashed) @if (\Illuminate\Support\Str::contains($btns,'s')) @can($model.'.show') @endcan @endif @if (\Illuminate\Support\Str::contains($btns,'e')) @can($model.'.edit') @endcan @endif @if (\Illuminate\Support\Str::contains($btns,'d')) @can($model.'.delete') @endcan @endif @else @if (\Illuminate\Support\Str::contains($btns,'r')) @can($model.'.restore') @endcan @endif @if (\Illuminate\Support\Str::contains($btns,'d')) @can($model.'.delete') @endcan @endif @endif