@php /** * Persistent "you are signed in as …" bar. Rendered on every dashboard and storefront * page while a super admin is impersonating, so the operator can never forget whose * account they are acting in — and always has one click back. */ if (!\App\Support\Auth::isImpersonating()) { return; } $who = \App\Support\Auth::user(); if (!$who) { return; } @endphp
@php // users.name is the already-derived display name (see display_name() on save), // so read the column rather than re-deriving it from the name parts here. @endphp {!! t_raw('admin.impersonate.bar', [':name' => '' . e((string) ($who['name'] ?? '')) . '']) !!} {!! role_pill((string) ($who['role'] ?? '')) !!}
@csrf