@php($edit = 'dashboard.admins.edit') @php($destroy = 'dashboard.admins.destroy') @php($id = "dropdownMenuButton{$admin->id}") @php($admin_id = "AdminModal{$admin->id}") @php($admin_label_id = "AdminModalLabel{$admin->id}") @if (\Route::has($edit) || \Route::has($destroy)) @can('delete',$admin) @if (\Route::has($destroy)) @endif @endcan @endif