podcasts as $userPodcast) { $checkMark = interact_as_actor_id() === $userPodcast->actor_id ? icon('check', 'ml-2 bg-pine-800 text-white rounded-full') : ''; $interactButtons .= << {$userPodcast->title}{$checkMark} CODE_SAMPLE; } $interactAsText = lang('Admin.choose_interact'); $route = route_to('interact-as-actor'); $csrfField = csrf_field(); $menuItems = [ [ 'type' => 'link', 'title' => lang('AdminNavigation.account.my-account'), 'uri' => route_to('my-account'), ], [ 'type' => 'link', 'title' => lang('AdminNavigation.account.change-password'), 'uri' => route_to('change-password'), ], [ 'type' => 'separator', ], [ 'type' => 'link', 'title' => lang('AdminNavigation.account.logout'), 'uri' => route_to('logout'), ], ]; if (user()->podcasts !== []) { $menuItems = array_merge([ [ 'type' => 'html', 'content' => esc(<< {$interactAsText}
{$csrfField} {$interactButtons}
CODE_SAMPLE), ], [ 'type' => 'separator', ], ], $menuItems); } ?>